]> granicus.if.org Git - php/commitdiff
- Fixed code (comparison with string literal)
authorFelipe Pena <felipe@php.net>
Sat, 27 Dec 2008 19:06:19 +0000 (19:06 +0000)
committerFelipe Pena <felipe@php.net>
Sat, 27 Dec 2008 19:06:19 +0000 (19:06 +0000)
ext/xmlrpc/xmlrpc-epi-php.c

index 02caf5923462d044f60146ca6995aaf8a3ca8b24..1e788b858e9e9af8ed9a61fce701639faa76fb0d 100644 (file)
@@ -721,7 +721,7 @@ PHP_FUNCTION(xmlrpc_encode_request)
                }
        }
 
-       if (out.xmlrpc_out.xml_elem_opts.encoding != ENCODING_DEFAULT) {
+       if (strcmp(out.xmlrpc_out.xml_elem_opts.encoding, ENCODING_DEFAULT) != 0) {
                efree((char *)out.xmlrpc_out.xml_elem_opts.encoding);
        }
 }