Search
j0ke.net Open Build Service
>
Projects
>
home:netmax
:
rebuilds
>
php4
> php-4.3.9-xmlrpc_gcc4.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File php-4.3.9-xmlrpc_gcc4.patch of Package php4
diff -Bru php-4.3.9/ext/xmlrpc/libxmlrpc/simplestring.c php-4.3.9-patched/ext/xmlrpc/libxmlrpc/simplestring.c --- php-4.3.9/ext/xmlrpc/libxmlrpc/simplestring.c 2003-12-16 22:00:35.000000000 +0100 +++ php-4.3.9-patched/ext/xmlrpc/libxmlrpc/simplestring.c 2007-12-31 00:40:19.000000000 +0100 @@ -85,7 +85,7 @@ #include <string.h> #include "simplestring.h" -#define my_free(thing) if(thing) {free(thing); thing = 0;} +#define my_free(thing) if(thing) {free(thing); thing = NULL;} /*----------------------** * Begin String Functions * diff -Bru php-4.3.9/ext/xmlrpc/libxmlrpc/xml_element.c php-4.3.9-patched/ext/xmlrpc/libxmlrpc/xml_element.c --- php-4.3.9/ext/xmlrpc/libxmlrpc/xml_element.c 2004-06-01 22:16:18.000000000 +0200 +++ php-4.3.9-patched/ext/xmlrpc/libxmlrpc/xml_element.c 2007-12-31 00:35:45.000000000 +0100 @@ -112,7 +112,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 @@ -188,7 +188,11 @@ Q_Destroy(&root->children); Q_Destroy(&root->attrs); - my_free((char*)root->name); +// my_free((char*)root->name); + if(root->name) { + free((char *)root->name); + root->name=NULL; + } simplestring_free(&root->text); my_free(root); } diff -Bru php-4.3.9/ext/xmlrpc/libxmlrpc/xmlrpc_private.h php-4.3.9-patched/ext/xmlrpc/libxmlrpc/xmlrpc_private.h --- php-4.3.9/ext/xmlrpc/libxmlrpc/xmlrpc_private.h 2002-07-05 06:43:53.000000000 +0200 +++ php-4.3.9-patched/ext/xmlrpc/libxmlrpc/xmlrpc_private.h 2007-12-31 00:41:50.000000000 +0100 @@ -166,7 +166,7 @@ /*---------------------------------------------------------------------------- * Macros */ -#define my_free(thing) if(thing) {free(thing); thing = 0;} +#define my_free(thing) if(thing) {free(thing); thing = NULL;} #ifdef __cplusplus