git-apply: fix error handling for nonexistent files
Missing argument for error() function. We should really use the gcc printf format checking capabilities.
This commit is contained in:
		
							
								
								
									
										2
									
								
								apply.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								apply.c
									
									
									
									
									
								
							@ -989,7 +989,7 @@ static int check_patch(struct patch *patch)
 | 
				
			|||||||
		int changed;
 | 
							int changed;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (lstat(old_name, &st) < 0)
 | 
							if (lstat(old_name, &st) < 0)
 | 
				
			||||||
			return error("%s: %s\n", strerror(errno));
 | 
								return error("%s: %s", old_name, strerror(errno));
 | 
				
			||||||
		if (check_index) {
 | 
							if (check_index) {
 | 
				
			||||||
			int pos = cache_name_pos(old_name, strlen(old_name));
 | 
								int pos = cache_name_pos(old_name, strlen(old_name));
 | 
				
			||||||
			if (pos < 0)
 | 
								if (pos < 0)
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user