Skip to content

Commit e13d011

Browse files
committed
- MFH: Fixed code (comparison with string literal)
1 parent 2f2fb60 commit e13d011

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/xmlrpc/xmlrpc-epi-php.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ PHP_FUNCTION(xmlrpc_encode_request)
715715
}
716716
}
717717

718-
if (out.xmlrpc_out.xml_elem_opts.encoding != ENCODING_DEFAULT) {
718+
if (strcmp(out.xmlrpc_out.xml_elem_opts.encoding, ENCODING_DEFAULT) != 0) {
719719
efree((char *)out.xmlrpc_out.xml_elem_opts.encoding);
720720
}
721721
}

0 commit comments

Comments
 (0)