diff options
author | Pierre Joye <pierre.php@gmail.com> | 2013-03-24 13:27:00 +0100 |
---|---|---|
committer | Pierre Joye <pierre.php@gmail.com> | 2013-03-24 13:27:00 +0100 |
commit | bb18fa448c104c10d0899090bf64ca66e36e492e (patch) | |
tree | 6a593a2e4ef0df37ae5ff576ba75925129429a91 /sapi/cli/php_cli_server.c | |
parent | 3af489683753ab31d7397812989e82f6a424d244 (diff) | |
download | php-git-bb18fa448c104c10d0899090bf64ca66e36e492e.tar.gz |
- add reminder for checking return values
Diffstat (limited to 'sapi/cli/php_cli_server.c')
-rw-r--r-- | sapi/cli/php_cli_server.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |