Fix the new -e handling. An empty cmd has to work for backwards compatibility.

dev
Christoph Lohmann 2015-05-10 15:19:48 +02:00
parent ae1923d275
commit 980991fa6e
1 changed files with 1 additions and 1 deletions

2
st.c
View File

@ -4010,7 +4010,7 @@ main(int argc, char *argv[]) {
opt_class = EARGF(usage()); opt_class = EARGF(usage());
break; break;
case 'e': case 'e':
if(argc > 1) if(argc > 0)
--argc, ++argv; --argc, ++argv;
goto run; goto run;
case 'f': case 'f':