diff options
author | Noel Darlow <mail@mcgruff.plus.com> | 2012-07-02 01:26:30 +0100 |
---|---|---|
committer | Noel Darlow <mail@mcgruff.plus.com> | 2012-07-02 01:26:30 +0100 |
commit | 5b54caac764dd2e608ad111f819871dd2818a277 (patch) | |
tree | 1e5c4dd3b2b4c952675847394aa2ce81262ee29a /dev-lang/php/files/5.0.0/php5.0.4-xmlrcp-ccode.diff | |
parent | 3 (diff) | |
download | underlay-5b54caac764dd2e608ad111f819871dd2818a277.tar.gz underlay-5b54caac764dd2e608ad111f819871dd2818a277.tar.bz2 underlay-5b54caac764dd2e608ad111f819871dd2818a277.zip |
still trying..
Diffstat (limited to 'dev-lang/php/files/5.0.0/php5.0.4-xmlrcp-ccode.diff')
-rw-r--r-- | dev-lang/php/files/5.0.0/php5.0.4-xmlrcp-ccode.diff | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/dev-lang/php/files/5.0.0/php5.0.4-xmlrcp-ccode.diff b/dev-lang/php/files/5.0.0/php5.0.4-xmlrcp-ccode.diff new file mode 100644 index 0000000..15e5950 --- /dev/null +++ b/dev-lang/php/files/5.0.0/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); + } |