diff options
author | salad <fmoenne-@student.le-101.fr> | 2020-12-16 13:46:31 +0100 |
---|---|---|
committer | salad <fmoenne-@student.le-101.fr> | 2020-12-16 13:46:31 +0100 |
commit | b96c18b5a12dc3f581ee0050aa48b2b3d7df26ec (patch) | |
tree | 5871c8a1555aa107a00b6a7e7d98210f263d6e3f /src/c_utils.c | |
parent | c_keys_next is now c_utils_next (diff) | |
download | 42-minishell-b96c18b5a12dc3f581ee0050aa48b2b3d7df26ec.tar.gz 42-minishell-b96c18b5a12dc3f581ee0050aa48b2b3d7df26ec.tar.bz2 42-minishell-b96c18b5a12dc3f581ee0050aa48b2b3d7df26ec.tar.xz 42-minishell-b96c18b5a12dc3f581ee0050aa48b2b3d7df26ec.tar.zst 42-minishell-b96c18b5a12dc3f581ee0050aa48b2b3d7df26ec.zip |
check for leaks.......again
Diffstat (limited to '')
-rw-r--r-- | src/c_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c_utils.c b/src/c_utils.c index 1fff5a1..10013d7 100644 --- a/src/c_utils.c +++ b/src/c_utils.c @@ -86,7 +86,7 @@ void i = -1; j = 0; - len = (*line != NULL) ? (ft_strlen(*line) + 2) : 2; + len = (ft_strlen(*line) + 2); if (!(dst = (char*)ft_calloc(sizeof(char), len))) return ; while (++i < (int)len) |