summaryrefslogtreecommitdiff
path: root/cmd-line-utils
diff options
context:
space:
mode:
authorunknown <serg@sergbook.mylan>2005-01-08 21:27:22 +0100
committerunknown <serg@sergbook.mylan>2005-01-08 21:27:22 +0100
commit94504d529be8e3bcb562fd5ccbbb2fa916204d4c (patch)
tree68bb20f708670baa5d96da693095c22885f8a659 /cmd-line-utils
parentc86ae20457350813de2fb9aa42eb279eedfb8eee (diff)
parent4c8d52aa80ce2a2131783bc2df5b02f21baa1c96 (diff)
downloadmariadb-git-94504d529be8e3bcb562fd5ccbbb2fa916204d4c.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into sergbook.mylan:/usr/home/serg/Abk/mysql-4.1
Diffstat (limited to 'cmd-line-utils')
-rw-r--r--cmd-line-utils/libedit/parse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd-line-utils/libedit/parse.c b/cmd-line-utils/libedit/parse.c
index b113353d464..d09b890c1ab 100644
--- a/cmd-line-utils/libedit/parse.c
+++ b/cmd-line-utils/libedit/parse.c
@@ -87,7 +87,8 @@ parse_line(EditLine *el, const char *line)
int argc;
Tokenizer *tok;
- tok = tok_init(NULL);
+ if (!(tok = tok_init(NULL)))
+ return -1;
tok_line(tok, line, &argc, &argv);
argc = el_parse(el, argc, argv);
tok_end(tok);