diff options
Diffstat (limited to 'dev-lang/php/files/5.0.4/php5.0.4-xmlrcp-ccode.diff')
-rw-r--r-- | dev-lang/php/files/5.0.4/php5.0.4-xmlrcp-ccode.diff | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/dev-lang/php/files/5.0.4/php5.0.4-xmlrcp-ccode.diff b/dev-lang/php/files/5.0.4/php5.0.4-xmlrcp-ccode.diff new file mode 100644 index 000000000000..15e5950d820f --- /dev/null +++ b/dev-lang/php/files/5.0.4/php5.0.4-xmlrcp-ccode.diff @@ -0,0 +1,23 @@ +--- ext/xmlrpc/libxmlrpc/xml_element.c 2004-06-01 22:16:06.000000000 +0200 ++++ ext/xmlrpc/libxmlrpc/xml_element.c 2005-04-22 13:54:17.000000000 +0200 +@@ -113,7 +116,7 @@ + #include "expat.h" + #include "encodings.h" + +-#define my_free(thing) if(thing) {free(thing); thing = 0;} ++#define my_free(thing) if(thing) {free(thing); thing = NULL;} + + #define XML_DECL_START "<?xml" + #define XML_DECL_START_LEN sizeof(XML_DECL_START) - 1 +@@ -189,7 +192,10 @@ + + Q_Destroy(&root->children); + Q_Destroy(&root->attrs); +- my_free((char*)root->name); ++ if(root->name) { ++ free((char *)root->name); ++ root->name = NULL; ++ } + simplestring_free(&root->text); + my_free(root); + } |