Remove 3rd argument to open() when flags don't include O_CREAT

pull/1/head
matthieu 2021-10-25 11:12:09 +00:00
parent 59a8bd4e1a
commit 6165236df0
1 changed files with 1 additions and 1 deletions

View File

@ -1512,7 +1512,7 @@ int main (int argc, char **argv)
fd_err = open(".FvwmFormErrors", O_WRONLY | O_CREAT, 0777);
fp_err = fdopen(fd_err, "w");
#else
fd_err = open("/dev/null", O_WRONLY, 0);
fd_err = open("/dev/null", O_WRONLY);
fp_err = fdopen(fd_err, "w");
#endif