fix: worddesc_copy did not copy the marker

This commit is contained in:
Khaïs COLIN 2025-03-21 19:13:17 +01:00
parent 8b67ccc813
commit 22b0b4746f
Signed by: logistic-bot
SSH key fingerprint: SHA256:RlpiqKeXpcPFZZ4y9Ou4xi2M8OhRJovIwDlbCaMsuAo

View file

@ -6,7 +6,7 @@
/* By: khais <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/02/13 17:20:36 by khais #+# #+# */
/* Updated: 2025/03/27 13:57:29 by khais ### ########.fr */
/* Updated: 2025/03/27 13:58:41 by khais ### ########.fr */
/* */
/* ************************************************************************** */
@ -68,6 +68,7 @@ t_worddesc *worddesc_copy(t_worddesc *worddesc)
return (NULL);
out->flags = worddesc->flags;
out->word = ft_strdup(worddesc->word);
out->marker = ft_strdup(worddesc->marker);
if (out->word == NULL)
return (free(out), NULL);
return (out);