projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (parent:
521fa33
)
- add missing zval type check
author
Michael Wallner
<mike@php.net>
Sat, 10 Feb 2007 08:41:38 +0000
(08:41 +0000)
committer
Michael Wallner
<mike@php.net>
Sat, 10 Feb 2007 08:41:38 +0000
(08:41 +0000)
http_cookie_api.c
patch
|
blob
|
history
diff --git
a/http_cookie_api.c
b/http_cookie_api.c
index 54d1d8e9b2b9079896f5fb6f5110d28801847589..9b7c9b80f77d2fbe7cd16240583388b17341bd96 100644
(file)
--- a/
http_cookie_api.c
+++ b/
http_cookie_api.c
@@
-284,7
+284,7
@@
PHP_HTTP_API http_cookie_list *_http_cookie_list_fromstruct(http_cookie_list *li
if (SUCCESS == zend_hash_find(ht, "path", sizeof("path"), (void *) &tmp) && Z_TYPE_PP(tmp) == IS_STRING) {
list->path = estrndup(Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp));
}
if (SUCCESS == zend_hash_find(ht, "path", sizeof("path"), (void *) &tmp) && Z_TYPE_PP(tmp) == IS_STRING) {
list->path = estrndup(Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp));
}
- if (SUCCESS == zend_hash_find(ht, "domain", sizeof("domain"), (void *) &tmp)) {
+ if (SUCCESS == zend_hash_find(ht, "domain", sizeof("domain"), (void *) &tmp)
&& Z_TYPE_PP(tmp) == IS_STRING
) {
list->domain = estrndup(Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp));
}
list->domain = estrndup(Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp));
}