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:
George Koehler 2016-11-08 15:35:02 -05:00
parent 7f94e971fd
commit ed7fb69f79

View file

@ -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);
}