cvs: php4 /ext/sablot sablot.c
| From: | Sterling Hughes | Date: | Thu, 19 Apr 2001 14:59:34 +0000 |
| Subject: | cvs: php4 /ext/sablot sablot.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-5166@lists.php.net to get a copy of this message | ||
sterling Thu Apr 19 07:59:34 2001 EDT
Modified files:
/php4/ext/sablot sablot.c
Log:
fix crash bug 10400.
Index: php4/ext/sablot/sablot.c
diff -u php4/ext/sablot/sablot.c:1.37 php4/ext/sablot/sablot.c:1.38
--- php4/ext/sablot/sablot.c:1.37 Sat Mar 3 17:09:36 2001
+++ php4/ext/sablot/sablot.c Thu Apr 19 07:59:33 2001
@@ -70,7 +70,7 @@
/* Macro's */
/* Free macros */
-#define S_FREE(__var) if (__var) efree(__var);
+#define S_FREE(__var) if (__var) { efree(__var); __var = NULL; }
#define FUNCH_FREE(__var) if (__var) zval_ptr_dtor(&(__var));
/* ERROR Macros */
@@ -208,9 +208,10 @@
static void php_sablot_init_globals(SABLOTLS_D)
{
- SABLOTG(processor) = NULL;
- SABLOTG(errors) = NULL;
- SABLOTG(errorHandler) = NULL;
+ SABLOTG(processor) = NULL;
+ SABLOTG(errors) = NULL;
+ SABLOTG(errorHandler) = NULL;
+ SABLOTG(output_transform_file) = NULL;
}