[Fusioninventory-commit] [fusinv/fusioninventory-agent] b8658e: avoid localtime() exception if param is undef

Gonéri Le Bouder goneri at rulezlan.org
Thu Dec 13 19:58:11 UTC 2012


  Branch: refs/heads/2.3.x
  Home:   https://github.com/fusinv/fusioninventory-agent
  Commit: b8658ec92613fb149ce80bdc4ad277f34793b546
      https://github.com/fusinv/fusioninventory-agent/commit/b8658ec92613fb149ce80bdc4ad277f34793b546
  Author: Gonéri Le Bouder <goneri at rulezlan.org>
  Date:   2012-12-13 (Thu, 13 Dec 2012)

  Changed paths:
    M lib/FusionInventory/Agent/Tools.pm

  Log Message:
  -----------
  avoid localtime() exception if param is undef

if localtime() parameter is undef, it will generate an exception.
To avoid that, we check first if $time is true.

Jairo and Mario, you deserve a big thanks for this bug.

closes: #1813

Reported-by: Mario Jorge De Sousa Freire <mario.freire at camara.gov.br>
Reported-by: Jairo C de Oliveira <olivejai at gmail.com>


  Commit: f192eb420c2d4c7e188c657d43a7bf4f246303d8
      https://github.com/fusinv/fusioninventory-agent/commit/f192eb420c2d4c7e188c657d43a7bf4f246303d8
  Author: Gonéri Le Bouder <goneri at rulezlan.org>
  Date:   2012-12-13 (Thu, 13 Dec 2012)

  Changed paths:
    M lib/FusionInventory/Agent/Tools.pm

  Log Message:
  -----------
  Merge branch '2.2.x' into 2.3.x


Compare: https://github.com/fusinv/fusioninventory-agent/compare/738ba5a0f032...f192eb420c2d


More information about the Fusioninventory-commit mailing list