mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
fix: worddesc_copy did not copy the marker
This commit is contained in:
parent
8b67ccc813
commit
22b0b4746f
1 changed files with 2 additions and 1 deletions
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: khais <marvin@42.fr> +#+ +:+ +#+ */
|
/* By: khais <marvin@42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2025/02/13 17:20:36 by khais #+# #+# */
|
/* 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);
|
return (NULL);
|
||||||
out->flags = worddesc->flags;
|
out->flags = worddesc->flags;
|
||||||
out->word = ft_strdup(worddesc->word);
|
out->word = ft_strdup(worddesc->word);
|
||||||
|
out->marker = ft_strdup(worddesc->marker);
|
||||||
if (out->word == NULL)
|
if (out->word == NULL)
|
||||||
return (free(out), NULL);
|
return (free(out), NULL);
|
||||||
return (out);
|
return (out);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue