From 684cf55a0d21da19a6e9e4a490a7c4dd3334638d Mon Sep 17 00:00:00 2001 From: Christoph Lohmann <20h@r-36.net> Date: Wed, 10 Apr 2013 17:48:32 +0200 Subject: Make st work with a plain -e command. --- st.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/st.c b/st.c index c938ff4..93058b9 100644 --- a/st.c +++ b/st.c @@ -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()); -- cgit v1.2.3