summaryrefslogtreecommitdiffstats
path: root/libft/src/ft_strlen.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-08-04 15:52:47 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-08-04 15:52:47 +0200
commit5cb3373a2e5a5109a5d3b72ef45978b98f885706 (patch)
tree11a0a6f467da3ddf227d2eaf6824c4509242025e /libft/src/ft_strlen.c
parentok nice (diff)
parent$? fix (diff)
download42-minishell-5cb3373a2e5a5109a5d3b72ef45978b98f885706.tar.gz
42-minishell-5cb3373a2e5a5109a5d3b72ef45978b98f885706.tar.bz2
42-minishell-5cb3373a2e5a5109a5d3b72ef45978b98f885706.tar.xz
42-minishell-5cb3373a2e5a5109a5d3b72ef45978b98f885706.tar.zst
42-minishell-5cb3373a2e5a5109a5d3b72ef45978b98f885706.zip
Merge branch 'master' into fix-pwd
Diffstat (limited to 'libft/src/ft_strlen.c')
-rw-r--r--libft/src/ft_strlen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libft/src/ft_strlen.c b/libft/src/ft_strlen.c
index 90f5110..2b26bf0 100644
--- a/libft/src/ft_strlen.c
+++ b/libft/src/ft_strlen.c
@@ -18,7 +18,7 @@ size_t
const char *ptr;
ptr = s;
- while (ptr && *ptr)
+ while (ptr != NULL && *ptr != '\0')
ptr++;
return (ptr - s);
}