diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-30 17:23:50 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-30 17:23:50 +0200 |
commit | cb7738a3da0ac11ed61e7fa17b214616f985b632 (patch) | |
tree | cbc2b298738ffe2c33cb60d5c52a3d46b461be8e /src/b_env.c | |
parent | Normed b_echo (diff) | |
download | 42-minishell-cb7738a3da0ac11ed61e7fa17b214616f985b632.tar.gz 42-minishell-cb7738a3da0ac11ed61e7fa17b214616f985b632.tar.bz2 42-minishell-cb7738a3da0ac11ed61e7fa17b214616f985b632.tar.xz 42-minishell-cb7738a3da0ac11ed61e7fa17b214616f985b632.tar.zst 42-minishell-cb7738a3da0ac11ed61e7fa17b214616f985b632.zip |
Normed b_env
Diffstat (limited to 'src/b_env.c')
-rw-r--r-- | src/b_env.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/b_env.c b/src/b_env.c index 8f0a974..a19aadd 100644 --- a/src/b_env.c +++ b/src/b_env.c @@ -16,13 +16,11 @@ #include "f_fail.h" #include "s_struct.h" -uint8_t - b_env(char *args[], - t_msh *msh) +uint8_t b_env(char *args[], t_msh *msh) { char **ptr; - if (args && args[0]) + if (args != NULL && args[0] != NULL) { f_fail_no_options("env", msh); return (127); |