[hackers] [st] Make st work with a plain -e command. || Christoph Lohmann
commit 684cf55a0d21da19a6e9e4a490a7c4dd3334638d
Author: Christoph Lohmann <20h_AT_r-36.net>
Date: Wed Apr 10 17:48:32 2013 +0200
Make st work with a plain -e command.
diff --git a/st.c b/st.c
index c938ff4..93058b9 100644
--- a/st.c
+++ b/st.c
_AT_@ -3332,7 +3332,8 @@ main(int argc, char *argv[]) {
break;
case 'e':
/* eat all remaining arguments */
- opt_cmd = &argv[1];
+ if(argc > 1)
+ opt_cmd = &argv[1];
goto run;
case 'f':
opt_font = EARGF(usage());
Received on Wed Apr 10 2013 - 17:50:24 CEST
This archive was generated by hypermail 2.3.0
: Wed Apr 10 2013 - 18:00:10 CEST