xmlrpc-c/xmlrpc-boolean-meaning.patch
Enrico Scholz c70bcc1acb updated to 1.27.7
backported fix for "doesn't accept 'b/f' to mean boolean false"
2012-01-04 13:40:56 +01:00

21 lines
936 B
Diff

commit 2764e9684ec9284cf86ad602505cb03ea77a2ad2
Author: giraffedata <giraffedata@adbb7d4b-a73a-0410-a071-c5f57c452bd4>
Date: Sat Dec 10 21:13:10 2011 +0000
Fix bug: doesn't accept 'b/f' to mean boolean false
git-svn-id: https://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/trunk@2224 adbb7d4b-a73a-0410-a071-c5f57c452bd4
diff --git a/tools/xmlrpc/xmlrpc.c b/tools/xmlrpc/xmlrpc.c
index 06da3e5..3f24431 100644
--- a/tools/xmlrpc/xmlrpc.c
+++ b/tools/xmlrpc/xmlrpc.c
@@ -352,7 +352,7 @@ buildBool(xmlrpc_env * const envP,
if (streq(valueString, "t") || streq(valueString, "true"))
*paramPP = xmlrpc_bool_new(envP, true);
- else if (streq(valueString, "f") == 0 || streq(valueString, "false"))
+ else if (streq(valueString, "f") || streq(valueString, "false"))
*paramPP = xmlrpc_bool_new(envP, false);
else
setError(envP, "Boolean argument has unrecognized value '%s'. "