summaryrefslogtreecommitdiffstats
path: root/src/ft_m_loop.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-23 14:33:40 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-23 14:33:40 +0200
commit0319a1ad971c7506b14cc2c82ada3125a242ce0d (patch)
tree6c1567f6e4a837aa849e13b4a818a103c6baed59 /src/ft_m_loop.c
parentWHY YOU EXIT (diff)
download42-minishell-0319a1ad971c7506b14cc2c82ada3125a242ce0d.tar.gz
42-minishell-0319a1ad971c7506b14cc2c82ada3125a242ce0d.tar.bz2
42-minishell-0319a1ad971c7506b14cc2c82ada3125a242ce0d.tar.xz
42-minishell-0319a1ad971c7506b14cc2c82ada3125a242ce0d.tar.zst
42-minishell-0319a1ad971c7506b14cc2c82ada3125a242ce0d.zip
I don't get it
Diffstat (limited to 'src/ft_m_loop.c')
-rw-r--r--src/ft_m_loop.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ft_m_loop.c b/src/ft_m_loop.c
index 08bc0e4..6902d0b 100644
--- a/src/ft_m_loop.c
+++ b/src/ft_m_loop.c
@@ -23,8 +23,8 @@
uint8_t
ft_m_loop(t_msh *msh)
{
- int8_t gnl;
char *line;
+ int8_t gnl;
gnl = 1;
while (gnl > 0)
@@ -37,9 +37,10 @@ uint8_t
ft_memdel((void*)&line);
ft_e_lcom(msh);
ft_lcom_clear(&msh->curr);
- /* TODO: GNL leak on "msh ~> exit" */
+ /* TODO: handle segv on spaces only "msh ~> " */
+ /* TODO: GNL 25 leak on "msh ~> exit" */
/* TODO: redirect vvv redirect */
- /* "msh ~> echo qwe >/dev/null; echo *.vscode >> .gitignore" */
+ /* "msh ~> cat < Makefile" aka read to stdin */
/* TODO: "msh ~> some command \": re GNL into ft_nrealloc */
}
else