X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_cookie_api.c;h=b487e205cdf0fbc01e741ae24c5cea2addd07fe9;hp=aff04abfef4f3d46bed6c5c70091c8f3722652bb;hb=864a85259b0369033e49666603eed6661b01606c;hpb=8c131f561b503d35e854996b1798d268276463e6 diff --git a/http_cookie_api.c b/http_cookie_api.c index aff04ab..b487e20 100644 --- a/http_cookie_api.c +++ b/http_cookie_api.c @@ -221,8 +221,8 @@ PHP_HTTP_API void _http_cookie_list_tostruct(http_cookie_list *list, zval *strct add_assoc_long(&array, "flags", list->flags); add_assoc_long(&array, "expires", (long) list->expires); - add_assoc_string(&array, "path", list->path?list->path:"", 1); - add_assoc_string(&array, "domain", list->domain?list->domain:"", 1); + add_assoc_string(&array, "path", STR_PTR(list->path), 1); + add_assoc_string(&array, "domain", STR_PTR(list->domain), 1); } /* }}} */