Fix compilation warning.
This commit is contained in:
		
							parent
							
								
									f43152c420
								
							
						
					
					
						commit
						9df1e4b175
					
				@ -129,7 +129,9 @@ void version() {
 | 
				
			|||||||
  if (!(version_file = fopen("VERSION", "rb"))) {
 | 
					  if (!(version_file = fopen("VERSION", "rb"))) {
 | 
				
			||||||
    tty_solitaire_generic_error(errno, __FILE__, __LINE__);
 | 
					    tty_solitaire_generic_error(errno, __FILE__, __LINE__);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  if (!fread(version_string, 1, 5, version_file));
 | 
					  if (!fread(version_string, 1, 5, version_file)) {
 | 
				
			||||||
 | 
					    // TODO: handle this.
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
  version_string[5] = '\0';
 | 
					  version_string[5] = '\0';
 | 
				
			||||||
  printf("%s\n", version_string);
 | 
					  printf("%s\n", version_string);
 | 
				
			||||||
  fclose(version_file);
 | 
					  fclose(version_file);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user