diff --git a/fs/path.c b/fs/path.c index 37a91a51cd..214c898ca9 100644 --- a/fs/path.c +++ b/fs/path.c @@ -120,7 +120,7 @@ static int __path_normalize(const char *at_path, const char *path, char *out, in int path_normalize(struct fd *at, const char *path, char *out, int flags) { assert(at != NULL); - if ((strcmp(path, "") == 0)) + if (strcmp(path, "") == 0) return _ENOENT; // start with root or cwd, depending on whether it starts with a slash diff --git a/xX_main_Xx.h b/xX_main_Xx.h index 31d52cd9b9..560b7adf67 100644 --- a/xX_main_Xx.h +++ b/xX_main_Xx.h @@ -104,7 +104,7 @@ static inline int xX_main_Xx(int argc, char *const argv[], const char *envp) { } argv_copy[p] = '\0'; if (argv[optind] == NULL) - return _ENOENT; + return _ENOENT; err = do_execve(argv[optind], argc - optind, argv_copy, envp == NULL ? "\0" : envp); if (err < 0) return err;