mirror of
				https://github.com/encounter/SDL.git
				synced 2025-10-25 19:20:25 +00:00 
			
		
		
		
	Christoph Mallon: Simplify assignment.
This commit is contained in:
		
							parent
							
								
									67c10169ee
								
							
						
					
					
						commit
						9e23d17869
					
				| @ -75,11 +75,7 @@ SDL_SetHintWithPriority(const char *name, const char *value, | |||||||
|                 if (hint->value) { |                 if (hint->value) { | ||||||
|                     SDL_free(hint->value); |                     SDL_free(hint->value); | ||||||
|                 } |                 } | ||||||
|                 if (value) { |                 hint->value = value ? SDL_strdup(value) : NULL; | ||||||
|                     hint->value = SDL_strdup(value); |  | ||||||
|                 } else { |  | ||||||
|                     hint->value = NULL; |  | ||||||
|                 } |  | ||||||
|             } |             } | ||||||
|             hint->priority = priority; |             hint->priority = priority; | ||||||
|             return SDL_TRUE; |             return SDL_TRUE; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user