diff options
author | unknown <serg@sergbook.mylan> | 2005-01-08 21:27:22 +0100 |
---|---|---|
committer | unknown <serg@sergbook.mylan> | 2005-01-08 21:27:22 +0100 |
commit | 94504d529be8e3bcb562fd5ccbbb2fa916204d4c (patch) | |
tree | 68bb20f708670baa5d96da693095c22885f8a659 /cmd-line-utils | |
parent | c86ae20457350813de2fb9aa42eb279eedfb8eee (diff) | |
parent | 4c8d52aa80ce2a2131783bc2df5b02f21baa1c96 (diff) | |
download | mariadb-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.c | 3 |
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); |