cvs: php4 /ext/zip zip.c
| From: | Derick Rethans | Date: | Wed, 26 Sep 2001 12:34:30 +0000 |
| Subject: | cvs: php4 /ext/zip zip.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-7564@lists.php.net to get a copy of this message | ||
derick Wed Sep 26 08:34:30 2001 EDT
Modified files:
/php4/ext/zip zip.c
Log:
- Fixed error introduced by the macro substitution
Index: php4/ext/zip/zip.c
diff -u php4/ext/zip/zip.c:1.19 php4/ext/zip/zip.c:1.20
--- php4/ext/zip/zip.c:1.19 Wed Sep 26 05:09:40 2001
+++ php4/ext/zip/zip.c Wed Sep 26 08:34:30 2001
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zip.c,v 1.19 2001/09/26 09:09:40 jeroen Exp $ */
+/* $Id: zip.c,v 1.20 2001/09/26 12:34:30 derick Exp $ */
#include "php.h"
#include "php_ini.h"
@@ -282,10 +282,11 @@
buf = emalloc(len + 1);
ret = zzip_read(entry->fp, buf, len);
- if (ret == 0)
- RETURN_FALSE;
- else
- RETURN_STRINGL(buf, len, 0);
+ if (ret == 0) {
+ RETURN_FALSE;
+ } else {
+ RETURN_STRINGL(buf, len, 0);
+ }
}
/* }}} */