- add preliminary ext/hash support (currently only for Win32)
[m6w6/ext-http] / http_date_api.c
index 1ebef701e7eed4a2155024c2600d1ff7bdfa0dc9..3872009157a5d1ea3ace49c0c1a981a32de92ab0 100644 (file)
@@ -147,7 +147,7 @@ PHP_HTTP_API char *_http_date(time_t t TSRMLS_DC)
 {
        struct tm *gmtime, tmbuf;
 
-       if (gmtime = php_gmtime_r(&t, &tmbuf)) {
+       if ((gmtime = php_gmtime_r(&t, &tmbuf))) {
                char *date = ecalloc(1, 31);
                snprintf(date, 30,
                        "%s, %02d %s %04d %02d:%02d:%02d GMT",