Add the missing return in plat/osx/libsys/creat.c
Before now, it might have worked by accident if the return value from open() stayed in the function return area.
This commit is contained in:
		
							parent
							
								
									7f94e971fd
								
							
						
					
					
						commit
						ed7fb69f79
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -2,5 +2,5 @@ | |||
| 
 | ||||
| int creat(const char *path, mode_t mode) | ||||
| { | ||||
| 	open(path, O_CREAT | O_TRUNC | O_WRONLY, mode); | ||||
| 	return open(path, O_CREAT | O_TRUNC | O_WRONLY, mode); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue