vm: Fix open() result checking
This commit is contained in:
		
							parent
							
								
									96774caf51
								
							
						
					
					
						commit
						85f3165513
					
				| @ -75,7 +75,7 @@ int single_file_processor(char *filename, struct stat *st) | ||||
| 	if (S_ISREG(mode)) { | ||||
| 		int ret; | ||||
| 		fd = open(filename, O_RDONLY); | ||||
| 		if (!fd) | ||||
| 		if (fd < 0) | ||||
| 			gui_fatal("open %s", filename); | ||||
| 		hdr.filelen = st->st_size; | ||||
| 		write_headers(&hdr, filename); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Marek Marczykowski
						Marek Marczykowski