fix(worddesc_create): need to initialize mark_string

This commit is contained in:
Khaïs COLIN 2025-03-06 13:06:55 +01:00 committed by Jérôme Guélen
parent 63df02aec5
commit dd4f109d38
No known key found for this signature in database

View file

@ -3,20 +3,24 @@
/* ::: :::::::: */
/* worddesc.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: khais <marvin@42.fr> +#+ +:+ +#+ */
/* By: jguelen <jguelen@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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 <stdlib.h>
/*
** 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