cvs: /php3/functions wddx_a.c
| From: | Andrey Zmievski | Date: | Thu, 26 Aug 1999 13:23:19 +0000 |
| Subject: | cvs: /php3/functions wddx_a.c | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-10226@lists.php.net to get a copy of this message | ||
andrey Thu Aug 26 09:23:19 1999 EDT
Modified files:
/php3/functions wddx_a.c
Log:
Fix for #2161.
Index: php3/functions/wddx_a.c
diff -u php3/functions/wddx_a.c:1.9 php3/functions/wddx_a.c:1.10
--- php3/functions/wddx_a.c:1.9 Wed Aug 18 12:34:31 1999
+++ php3/functions/wddx_a.c Thu Aug 26 09:23:19 1999
@@ -27,7 +27,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: wddx_a.c,v 1.9 1999/08/18 16:34:31 andrey Exp $ */
+/* $Id: wddx_a.c,v 1.10 1999/08/26 13:23:19 andrey Exp $ */
#include "php.h"
#include "internal_functions.h"
@@ -628,9 +628,11 @@
XML_ParserFree(parser);
- wddx_stack_top(&stack, (void**)&ent);
- *return_value = *(ent->data);
- pval_copy_constructor(return_value);
+ if (!wddx_stack_is_empty(&stack)) {
+ wddx_stack_top(&stack, (void**)&ent);
+ *return_value = *(ent->data);
+ pval_copy_constructor(return_value);
+ }
wddx_stack_destroy(&stack);
}