Bug fix
This commit is contained in:
		
							parent
							
								
									70a459a112
								
							
						
					
					
						commit
						721de974ee
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -52,6 +52,7 @@ compile(argc, argv)
 | 
			
		|||
		break;
 | 
			
		||||
	case 0:
 | 
			
		||||
		FileName = "";
 | 
			
		||||
		WorkingDir = 0;
 | 
			
		||||
		break;
 | 
			
		||||
	default:
 | 
			
		||||
		fatal("use: %s [options] [source]", prog_name);
 | 
			
		||||
| 
						 | 
				
			
			@ -61,6 +62,6 @@ compile(argc, argv)
 | 
			
		|||
	if (!InsertFile(source, (char **) 0, &dummy)) /* read the source file	*/
 | 
			
		||||
		fatal("%s: no source file %s\n", prog_name, 
 | 
			
		||||
			source ? source : "stdin");
 | 
			
		||||
	WorkingDir = getwdir(dummy);
 | 
			
		||||
	if (source) WorkingDir = getwdir(dummy);
 | 
			
		||||
	preprocess(source);
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue