X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_date_api.c;h=3872009157a5d1ea3ace49c0c1a981a32de92ab0;hp=1ebef701e7eed4a2155024c2600d1ff7bdfa0dc9;hb=92f5e5a5df0bff3d8076c1f5ed73590b40849501;hpb=e83a7438dc70ed96630887246a1d3aefcf155b1c diff --git a/http_date_api.c b/http_date_api.c index 1ebef70..3872009 100644 --- a/http_date_api.c +++ b/http_date_api.c @@ -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",