cvs: php4 /main streams.c
| From: | Marcus Boerger | Date: | Mon, 18 Nov 2002 17:23:22 +0000 |
| Subject: | cvs: php4 /main streams.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-16420@lists.php.net to get a copy of this message | ||
helly Mon Nov 18 12:23:22 2002 EDT
Modified files:
/php4/main streams.c
Log:
Fix warning as discussed with Wez.
Index: php4/main/streams.c
diff -u php4/main/streams.c:1.129 php4/main/streams.c:1.130
--- php4/main/streams.c:1.129 Mon Nov 18 07:37:19 2002
+++ php4/main/streams.c Mon Nov 18 12:23:21 2002
@@ -20,7 +20,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: streams.c,v 1.129 2002/11/18 12:37:19 wez Exp $ */
+/* $Id: streams.c,v 1.130 2002/11/18 17:23:21 helly Exp $ */
#define _GNU_SOURCE
#include "php.h"
@@ -1374,6 +1374,8 @@
} else {
ret = fclose(data->file);
}
+ } else {
+ return 0;/* everything should be closed already -> success*/
}
if (data->temp_file_name) {
unlink(data->temp_file_name);