diff options
author | Greg Beaver <cellog@php.net> | 2008-08-31 19:46:35 +0000 |
---|---|---|
committer | Greg Beaver <cellog@php.net> | 2008-08-31 19:46:35 +0000 |
commit | 28689c9c01f90b981bacbc17358a4da7d3d9b57e (patch) | |
tree | 7436ff520a30ba7b9c215dca46d4fcf19bee018e /ext/phar/util.c | |
parent | 9397c4a5d1c329f95c61f8c1a2b0c20b2af44378 (diff) | |
download | php-git-28689c9c01f90b981bacbc17358a4da7d3d9b57e.tar.gz |
use '\0' instead of 0 for chars, removes intel warning
Diffstat (limited to 'ext/phar/util.c')
-rw-r--r-- | ext/phar/util.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/phar/util.c b/ext/phar/util.c index b7e82c12c7..0723cd2508 100644 --- a/ext/phar/util.c +++ b/ext/phar/util.c @@ -683,7 +683,7 @@ really_get_entry: if (entry->link) { efree(entry->link); entry->link = NULL; - entry->tar_type = (entry->is_tar ? TAR_FILE : 0); + entry->tar_type = (entry->is_tar ? TAR_FILE : '\0'); } if (for_write) { @@ -874,7 +874,7 @@ int phar_copy_entry_fp(phar_entry_info *source, phar_entry_info *dest, char **er if (dest->link) { efree(dest->link); dest->link = NULL; - dest->tar_type = (dest->is_tar ? TAR_FILE : 0); + dest->tar_type = (dest->is_tar ? TAR_FILE : '\0'); } dest->fp_type = PHAR_MOD; @@ -1079,7 +1079,7 @@ int phar_create_writeable_entry(phar_archive_data *phar, phar_entry_info *entry, if (entry->link) { efree(entry->link); entry->link = NULL; - entry->tar_type = (entry->is_tar ? TAR_FILE : 0); + entry->tar_type = (entry->is_tar ? TAR_FILE : '\0'); } entry->fp = php_stream_fopen_tmpfile(); @@ -1136,7 +1136,7 @@ int phar_separate_entry_fp(phar_entry_info *entry, char **error TSRMLS_DC) /* {{ if (entry->link) { efree(entry->link); entry->link = NULL; - entry->tar_type = (entry->is_tar ? TAR_FILE : 0); + entry->tar_type = (entry->is_tar ? TAR_FILE : '\0'); } entry->offset = 0; |