From dd4f109d389c2ccee5b576395f35c0a17148875a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kha=C3=AFs=20COLIN?= Date: Thu, 6 Mar 2025 13:06:55 +0100 Subject: [PATCH] fix(worddesc_create): need to initialize mark_string --- src/parser/worddesc/worddesc.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/parser/worddesc/worddesc.c b/src/parser/worddesc/worddesc.c index 198992f..1aa2b0b 100644 --- a/src/parser/worddesc/worddesc.c +++ b/src/parser/worddesc/worddesc.c @@ -3,20 +3,24 @@ /* ::: :::::::: */ /* worddesc.c :+: :+: :+: */ /* +:+ +:+ +:+ */ -/* By: khais +#+ +:+ +#+ */ +/* By: jguelen +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/02/13 17:20:36 by khais #+# #+# */ -/* Updated: 2025/03/11 11:13:33 by khais ### ########.fr */ +/* Updated: 2025/03/21 10:10:02 by jguelen ### ########.fr */ /* */ /* ************************************************************************** */ #include "worddesc.h" #include "libft.h" +#include "libft/libft.h" #include /* ** allocate a new worddesc with given flags, marker, and word. ** +** mark_string is initialized as a string of the same length as word, but filled +** with spaces +** ** return null in case of error, or if word is null ** ** mark_string is initialized as a string of the same length as word, but filled