mirror of
https://codeberg.org/la-chouette/minishell.git
synced 2025-12-05 23:18:08 +01:00
24 lines
1.2 KiB
C
24 lines
1.2 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* cmdlist_use_after_free.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: khais <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2025/03/03 11:40:37 by khais #+# #+# */
|
|
/* Updated: 2025/03/04 13:27:54 by khais ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "../src/parser/wordsplit/wordsplit.h"
|
|
#include "../src/parser/command_list/command_list.h"
|
|
#include "libft.h"
|
|
#include <assert.h>
|
|
|
|
int main(void)
|
|
{
|
|
t_wordlist *words = minishell_wordsplit("|");
|
|
t_cmdlist *cmd = cmdlist_from_wordlist(words);
|
|
assert(cmd == NULL);
|
|
return (0);
|
|
}
|