summaryrefslogtreecommitdiffstats
path: root/src/ft_b_env.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-21 22:15:20 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-21 22:15:20 +0200
commitd54384fef56237ea8a88efe0a4fcd7f558c66252 (patch)
tree61f09270dca5273dbe63bbdd19141ff00ad76577 /src/ft_b_env.c
parentCool (diff)
download42-minishell-d54384fef56237ea8a88efe0a4fcd7f558c66252.tar.gz
42-minishell-d54384fef56237ea8a88efe0a4fcd7f558c66252.tar.bz2
42-minishell-d54384fef56237ea8a88efe0a4fcd7f558c66252.tar.xz
42-minishell-d54384fef56237ea8a88efe0a4fcd7f558c66252.tar.zst
42-minishell-d54384fef56237ea8a88efe0a4fcd7f558c66252.zip
Tryna export
Diffstat (limited to 'src/ft_b_env.c')
-rw-r--r--src/ft_b_env.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_b_env.c b/src/ft_b_env.c
index 2ac4000..c602c13 100644
--- a/src/ft_b_env.c
+++ b/src/ft_b_env.c
@@ -21,7 +21,7 @@ uint8_t
{
char **ptr;
- if (args[0])
+ if (args && args[0])
{
ft_fail_no_options("env");
return (127);