Removed superfluous if statement in update.c:453
Check for NULL not necessary here
This commit is contained in:
		 Jochen Keil
					Jochen Keil
				
			
				
					committed by
					
						 Max Kellermann
						Max Kellermann
					
				
			
			
				
	
			
			
			 Max Kellermann
						Max Kellermann
					
				
			
						parent
						
							0aee49bdf8
						
					
				
				
					commit
					f31c371fbd
				
			| @@ -450,9 +450,6 @@ update_container_file(	struct directory* directory, | |||||||
| 			return true; | 			return true; | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	// contdir doesn't yet exist |  | ||||||
| 	if (contdir == NULL) |  | ||||||
| 	{ |  | ||||||
| 	contdir = make_subdir(directory, name); | 	contdir = make_subdir(directory, name); | ||||||
| 	contdir->mtime = st->st_mtime; | 	contdir->mtime = st->st_mtime; | ||||||
| 	contdir->device = DEVICE_CONTAINER; | 	contdir->device = DEVICE_CONTAINER; | ||||||
| @@ -483,9 +480,6 @@ update_container_file(	struct directory* directory, | |||||||
| 	} | 	} | ||||||
| 	else | 	else | ||||||
| 		return true; | 		return true; | ||||||
| 	} |  | ||||||
| 	// something went wrong, so return true to return update_regular_file |  | ||||||
| 	return true; |  | ||||||
| } | } | ||||||
|  |  | ||||||
| static void | static void | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user