[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:15 UTC 2012


  Branch: refs/heads/2.2.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>





More information about the Fusioninventory-commit mailing list