summaryrefslogtreecommitdiff
path: root/ext/standard/head.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2001-07-21 12:43:23 +0000
committerZeev Suraski <zeev@php.net>2001-07-21 12:43:23 +0000
commit20d53346ce741e1164989720500a7bcdae23f945 (patch)
tree9c3624721665e4e5ccfc92a8c33d02043a384cbb /ext/standard/head.c
parent7213492b3a6b9271ac74d25b4e30f31499959618 (diff)
downloadphp-git-20d53346ce741e1164989720500a7bcdae23f945.tar.gz
Remove redundant code
Diffstat (limited to 'ext/standard/head.c')
-rw-r--r--ext/standard/head.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/head.c b/ext/standard/head.c
index 34d59454f0..3c91f228b7 100644
--- a/ext/standard/head.c
+++ b/ext/standard/head.c
@@ -157,11 +157,11 @@ PHP_FUNCTION(setcookie)
efree(encoded_value);
}
- if (z_path && Z_STRVAL_PP(z_path) && Z_STRLEN_PP(z_path)>0) {
+ if (z_path && Z_STRLEN_PP(z_path)>0) {
strcat(cookie, "; path=");
strcat(cookie, Z_STRVAL_PP(z_path));
}
- if (z_domain && Z_STRVAL_PP(z_domain) && Z_STRLEN_PP(z_domain)>0) {
+ if (z_domain && Z_STRLEN_PP(z_domain)>0) {
strcat(cookie, "; domain=");
strcat(cookie, Z_STRVAL_PP(z_domain));
}