From: Pierre Joye Date: Sun, 24 Mar 2013 12:27:00 +0000 (+0100) Subject: - add reminder for checking return values X-Git-Tag: php-5.4.14RC1~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bb18fa448c104c10d0899090bf64ca66e36e492e;p=php - add reminder for checking return values --- diff --git a/sapi/cli/php_cli_server.c b/sapi/cli/php_cli_server.c index e834e75957..903f042125 100644 --- a/sapi/cli/php_cli_server.c +++ b/sapi/cli/php_cli_server.c @@ -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;