summaryrefslogtreecommitdiffstats
path: root/src/p_lcom_next.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-08-01 20:05:15 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-08-01 20:05:15 +0200
commit27046e89845d2c25ed743a074815c6ef88a7e6de (patch)
tree353c4a60bbf0facffc2a2783ce5a017960bf1199 /src/p_lcom_next.c
parentOpti (diff)
download42-minishell-27046e89845d2c25ed743a074815c6ef88a7e6de.tar.gz
42-minishell-27046e89845d2c25ed743a074815c6ef88a7e6de.tar.bz2
42-minishell-27046e89845d2c25ed743a074815c6ef88a7e6de.tar.xz
42-minishell-27046e89845d2c25ed743a074815c6ef88a7e6de.tar.zst
42-minishell-27046e89845d2c25ed743a074815c6ef88a7e6de.zip
Bug fix
Diffstat (limited to '')
-rw-r--r--src/p_lcom_next.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/p_lcom_next.c b/src/p_lcom_next.c
index b106032..1df0a1f 100644
--- a/src/p_lcom_next.c
+++ b/src/p_lcom_next.c
@@ -194,7 +194,7 @@ char
ptr = words[i];
while (*ptr != '\0' && *ptr != '=')
ptr++;
- if (*ptr == '\0' || words[i][0] == '=')
+ if (*ptr == '\0' || words[i][0] == '=' || ft_isdigit(words[i][0]))
{
reg = FALSE;
if (i == 0)