]> granicus.if.org Git - php/commitdiff
- add reminder for checking return values
authorPierre Joye <pierre.php@gmail.com>
Sun, 24 Mar 2013 12:27:00 +0000 (13:27 +0100)
committerPierre Joye <pierre.php@gmail.com>
Sun, 24 Mar 2013 12:27:00 +0000 (13:27 +0100)
sapi/cli/php_cli_server.c

index e834e759570085ffc837185d91fa234268fced58..903f042125d51a56b58dcfafd045c83ed19d6c30 100644 (file)
@@ -315,6 +315,8 @@ int php_cli_server_get_system_time(char *buf) {
        struct tm tm;
 
        gettimeofday(&tv, NULL);
+
+       /* TODO: should be checked for NULL tm/return vaue */
        php_localtime_r(&tv.tv_sec, &tm);
        php_asctime_r(&tm, buf);
        return 0;