From 9b4669d9f07c2e7d49e266e15b0478d64445e337 Mon Sep 17 00:00:00 2001 From: bernhardheld Date: Tue, 25 Sep 2001 19:50:33 +0000 Subject: [PATCH] "Fix" of compiler crash git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1312 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- src/SDCCmain.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/SDCCmain.c b/src/SDCCmain.c index 3573c6bb..4016c5c5 100644 --- a/src/SDCCmain.c +++ b/src/SDCCmain.c @@ -502,7 +502,7 @@ processFile (char *s) { werror (E_FILE_OPEN_ERR, s); exit (1); - } + } /* copy the file name into the buffer */ strcpy (buffer, s); @@ -1266,10 +1266,14 @@ preProcess (char **envp) setMainValue ("cppextraopts", join(preArgv)); if (!preProcOnly) - preOutName = strdup (tmpnam (NULL)); - - setMainValue ("cppoutfilename", preOutName); + { + preOutName = strdup (tmpnam (NULL)); + setMainValue ("cppoutfilename", preOutName); + } + else + setMainValue ("cppoutfilename", "notexistent_fixme"); // Fix me! + if (options.verbose) printf ("sdcc: Calling preprocessor...\n"); -- 2.30.2