diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1995-08-04 19:42:23 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1995-08-04 19:42:23 +0000 |
| commit | 7800dc38230c3cb11870788822ab95d579f32ea6 (patch) | |
| tree | d86328dc9580d63baf4068db73faeb9e4603f472 /lib/libedit | |
| parent | c28fbb7baac0373cbcdc4b29c393eb0be9c9d859 (diff) | |
Notes
Diffstat (limited to 'lib/libedit')
| -rw-r--r-- | lib/libedit/parse.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libedit/parse.c b/lib/libedit/parse.c index a89539c9cd2f..140a71d2e63f 100644 --- a/lib/libedit/parse.c +++ b/lib/libedit/parse.c @@ -97,6 +97,9 @@ el_parse(el, argc, argv) char *ptr; int i; + if (argc < 1) + return argc; + for (ptr = argv[0]; *ptr && *ptr != ':'; ptr++) continue; |
