[llvm-commits] [test-suite] r97001 - /test-suite/trunk/MultiSource/Applications/oggenc/oggenc.c

Daniel Dunbar daniel at zuster.org
Tue Feb 23 15:34:23 PST 2010


Author: ddunbar
Date: Tue Feb 23 17:34:23 2010
New Revision: 97001

URL: http://llvm.org/viewvc/llvm-project?rev=97001&view=rev
Log:
Eliminate some undefined behavior.

Modified:
    test-suite/trunk/MultiSource/Applications/oggenc/oggenc.c

Modified: test-suite/trunk/MultiSource/Applications/oggenc/oggenc.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Applications/oggenc/oggenc.c?rev=97001&r1=97000&r2=97001&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Applications/oggenc/oggenc.c (original)
+++ test-suite/trunk/MultiSource/Applications/oggenc/oggenc.c Tue Feb 23 17:34:23 2010
@@ -1399,8 +1399,7 @@
 				opt->namefmt = strdup(optarg);
 				break;
             case 'X':
-				if(opt->namefmt_remove && opt->namefmt_remove != 
-                        DEFAULT_NAMEFMT_REMOVE)
+                                if(opt->namefmt_remove && strcmp(opt->namefmt_remove, DEFAULT_NAMEFMT_REMOVE))
 				{
 					fprintf(stderr, _("WARNING: Multiple name format filters specified, using final\n"));
 					free(opt->namefmt_remove);





More information about the llvm-commits mailing list