mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-06 07:28:09 +01:00
wordsplit: return error for unclosed quotes
This commit is contained in:
parent
7806043a98
commit
558ddb4096
2 changed files with 23 additions and 2 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: khais <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/02/13 17:02:32 by khais #+# #+# */
|
||||
/* Updated: 2025/02/17 14:20:45 by khais ### ########.fr */
|
||||
/* Updated: 2025/02/17 14:54:11 by khais ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -106,5 +106,7 @@ t_wordlist *minishell_wordsplit(char *original)
|
|||
break ;
|
||||
idx++;
|
||||
}
|
||||
if (quote != '\0')
|
||||
return (wordlist_destroy(wordlist), NULL);
|
||||
return (wordlist);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue