Fix sh coredump in vi mode with empty colon command

This commit is contained in:
Andrey A. Chernov 1995-08-04 19:42:23 +00:00
parent c28fbb7baa
commit 7800dc3823
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9914

View File

@ -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;