cvs: php4 /ext/standard assert.c
| From: | Thies C. Arntzen | Date: | Wed, 06 Sep 2000 13:50:09 +0000 |
| Subject: | cvs: php4 /ext/standard assert.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-1604@lists.php.net to get a copy of this message | ||
thies Wed Sep 6 06:50:09 2000 EDT
Modified files:
/php4/ext/standard assert.c
Log:
fix #6552 & #6577
thanx to Blake Schwendiman" <blake@intechra.net>
Index: php4/ext/standard/assert.c
diff -u php4/ext/standard/assert.c:1.23 php4/ext/standard/assert.c:1.24
--- php4/ext/standard/assert.c:1.23 Wed Aug 16 05:47:09 2000
+++ php4/ext/standard/assert.c Wed Sep 6 06:50:09 2000
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: assert.c,v 1.23 2000/08/16 12:47:09 hholzgra Exp $ */
+/* $Id: assert.c,v 1.24 2000/09/06 13:50:09 thies Exp $ */
/* {{{ includes/startup/misc */
@@ -301,12 +301,12 @@
RETVAL_STRING(SAFE_STRING(oldstr),1);
if (ac == 2) {
+ if (oldstr) {
+ efree(oldstr);
+ }
convert_to_string_ex(value);
ASSERT(callback) = estrndup((*value)->value.str.val,(*value)->value.str.len);
}
- if (oldstr) {
- efree(oldstr);
- }
return;
break;