summaryrefslogtreecommitdiff
path: root/ext/phar/tar.c
diff options
context:
space:
mode:
authorGreg Beaver <cellog@php.net>2008-08-31 20:24:04 +0000
committerGreg Beaver <cellog@php.net>2008-08-31 20:24:04 +0000
commitcabf4c481ebc1829b338791deede3042973ad305 (patch)
treeffbf0182c0d505a173351dcdb7a31c5245575e41 /ext/phar/tar.c
parent4b81bd61d8dad38ff9625d2b010de34b1a8cfc5e (diff)
downloadphp-git-cabf4c481ebc1829b338791deede3042973ad305.tar.gz
use TAR_FILE instead of '0' and '\0' instead of 0
Diffstat (limited to 'ext/phar/tar.c')
-rw-r--r--ext/phar/tar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/phar/tar.c b/ext/phar/tar.c
index 0815b8c2dc..8a0ac07a80 100644
--- a/ext/phar/tar.c
+++ b/ext/phar/tar.c
@@ -369,7 +369,7 @@ bail:
return FAILURE;
}
- entry.tar_type = ((old & (hdr->typeflag == 0)) ? '0' : hdr->typeflag);
+ entry.tar_type = ((old & (hdr->typeflag == '\0')) ? TAR_FILE : hdr->typeflag);
entry.offset = entry.offset_abs = pos; /* header_offset unused in tar */
entry.fp_type = PHAR_FP;
entry.flags = phar_tar_number(hdr->mode, sizeof(hdr->mode)) & PHAR_ENT_PERM_MASK;