aboutsummaryrefslogtreecommitdiff
path: root/src/env.c
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-10-10 18:10:17 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-10-10 18:10:17 +0200
commit4773be43fa4c9ad88c72c45e26e5ea304eac7a77 (patch)
tree3457cffc8fbe9e45eace7d964162542b3d2260fe /src/env.c
parentcfd5d10a4f9f816ecaea6ab7bc99559c9dc758fa (diff)
downloadminishell-4773be43fa4c9ad88c72c45e26e5ea304eac7a77.tar.gz
minishell-4773be43fa4c9ad88c72c45e26e5ea304eac7a77.tar.bz2
minishell-4773be43fa4c9ad88c72c45e26e5ea304eac7a77.zip
Fixing status code bug
Diffstat (limited to 'src/env.c')
-rw-r--r--src/env.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/env.c b/src/env.c
index b463e9c..f4bc031 100644
--- a/src/env.c
+++ b/src/env.c
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/28 09:21:24 by cacharle #+# #+# */
-/* Updated: 2020/09/16 16:29:33 by charles ### ########.fr */
+/* Updated: 2020/10/10 18:08:17 by charles ### ########.fr */
/* */
/* ************************************************************************** */
@@ -152,7 +152,7 @@ size_t env_key_len(char *key, bool allow_status)
size_t i;
if (allow_status && *key == '?')
- return (2);
+ return (1);
if (ft_isdigit(*key))
return (0);
i = 0;