diff options
Diffstat (limited to '')
-rw-r--r-- | src/s_line.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/s_line.c b/src/s_line.c index b47b453..ae0ec07 100644 --- a/src/s_line.c +++ b/src/s_line.c @@ -80,7 +80,7 @@ t_line link->next = NULL; return (link); } - link->com = s_com_new(word, msh); - /* TODO: check link->com = NULL */ + if ((link->com = s_com_new(word, msh)) == NULL) + return (NULL); return (link); } |