[xiph-commits] r17015 - trunk/vorbis-tools/ogg123

xiphmont at svn.xiph.org xiphmont at svn.xiph.org
Wed Mar 24 01:21:29 PDT 2010


Author: xiphmont
Date: 2010-03-24 01:21:29 -0700 (Wed, 24 Mar 2010)
New Revision: 17015

Modified:
   trunk/vorbis-tools/ogg123/cfgfile_options.c
Log:
Fixes Trac #1571


Modified: trunk/vorbis-tools/ogg123/cfgfile_options.c
===================================================================
--- trunk/vorbis-tools/ogg123/cfgfile_options.c	2010-03-24 08:16:44 UTC (rev 17014)
+++ trunk/vorbis-tools/ogg123/cfgfile_options.c	2010-03-24 08:21:29 UTC (rev 17015)
@@ -292,12 +292,12 @@
 	/* Maybe this is a numeric bool */
 	tmpl = strtol (value, &endptr, 0);
 
-	if ( strncasecmp(value, "y", 1) == 0
-	     || strcasecmp(value, "true")
+	if ( !strncasecmp(value, "y", 1)
+	     || !strcasecmp(value, "true")
 	     || (*endptr == '\0' && tmpl) )
 	  *(int *) opt->ptr = 1;
-	else if ( strncasecmp(value, "n", 1) == 0
-		  || strcasecmp(value, "false")
+	else if ( !strncasecmp(value, "n", 1)
+		  || !strcasecmp(value, "false")
 		  || (*endptr == '\0' && !tmpl) )
 	  *(int *) opt->ptr = 0;
 	else



More information about the commits mailing list