From 8e6e92a899eeefad973c45ae01f1793a5fa3e0e5 Mon Sep 17 00:00:00 2001
From: geigle1 <geigle1@6fbd10e7-183d-0410-a318-cb416676e4f2>
Date: Fri, 14 Sep 2012 04:39:57 +0000
Subject: [PATCH] Port fix to monad.

git-svn-id: https://subversion.cs.illinois.edu/svn/cs225@7753 6fbd10e7-183d-0410-a318-cb416676e4f2
---
 source/ccmonad.cpp | 14 ++++----------
 1 file changed, 4 insertions(+), 10 deletions(-)

diff --git a/source/ccmonad.cpp b/source/ccmonad.cpp
index 5bf482e..a61cf29 100644
--- a/source/ccmonad.cpp
+++ b/source/ccmonad.cpp
@@ -47,20 +47,14 @@ int main(int argc, const char * const * argv)
 			}
 			else
 			{
-				if (isNextOutput)
+				if (isNextOutput) 
+                {
 					outputFile = argv[i];
+                    isNextOutput = false;
+                }
 				else
 				{
                     inputFiles.push_back( argv[i] );
-                    /*
-					if (inputFile == "")
-						inputFile = argv[i];
-					else
-					{
-						cerr << "cc-monad: error: cc-monad can only take one input file" << endl;
-						exit(1);
-					}
-                    */
 				}
 			}
 		}
-- 
GitLab