summaryrefslogtreecommitdiffstats
path: root/src/c_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/c_utils.c')
-rw-r--r--src/c_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c_utils.c b/src/c_utils.c
index 10013d7..1fff5a1 100644
--- a/src/c_utils.c
+++ b/src/c_utils.c
@@ -86,7 +86,7 @@ void
i = -1;
j = 0;
- len = (ft_strlen(*line) + 2);
+ len = (*line != NULL) ? (ft_strlen(*line) + 2) : 2;
if (!(dst = (char*)ft_calloc(sizeof(char), len)))
return ;
while (++i < (int)len)