]> granicus.if.org Git - yasm/commitdiff
* genmodule.c (main): Make sure len is initialized to 0.
authorPeter Johnson <peter@tortall.net>
Sun, 25 Sep 2005 03:35:49 +0000 (03:35 -0000)
committerPeter Johnson <peter@tortall.net>
Sun, 25 Sep 2005 03:35:49 +0000 (03:35 -0000)
* genmodule.vcproj: Ensure FILTERMODE is defined for Debug configuration.

Patch by: Masaru Tsuchiyama <tsuchiyama@asahi-net.email.ne.jp>

svn path=/trunk/yasm/; revision=1237

Mkfiles/vc/genmodule/genmodule.vcproj
libyasm/genmodule.c

index 01e9ae6ac06c8f06c3b051da1baafa1e62ec19be..0cd85b27eb3f785b1a07ec266d8e939370139620 100644 (file)
@@ -19,7 +19,7 @@
                        <Tool\r
                                Name="VCCLCompilerTool"\r
                                Optimization="0"\r
-                               PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"\r
+                               PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;FILTERMODE"\r
                                MinimalRebuild="TRUE"\r
                                BasicRuntimeChecks="3"\r
                                RuntimeLibrary="5"\r
index 9b8524f3264792e12d70dc69bffca0f933869557..03fa6128e4b0a6f24cff3a9c2be21852c9926a05 100644 (file)
@@ -99,6 +99,7 @@ main(int argc, char *argv[])
        return EXIT_FAILURE;
     }
 
+    len = 0;
     while (fgets(str, MAXLINE, in)) {
        if (strncmp(str, "MODULES_", 8) == 0) {
            len = 0;