[hackers] [st] Fix the new -e handling. An empty cmd has to work for backwards compatibility. || Christoph Lohmann

From: <git_AT_suckless.org>
Date: Sun, 10 May 2015 15:20:09 +0200 (CEST)

commit 980991fa6e7b737d54f8e5c60c26275890eb28ff
Author: Christoph Lohmann <20h_AT_r-36.net>
Date: Sun May 10 15:19:48 2015 +0200

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

diff --git a/st.c b/st.c
index c2da66b..55a5c56 100644
--- a/st.c
+++ b/st.c
_AT_@ -4010,7 +4010,7 @@ main(int argc, char *argv[]) {
                 opt_class = EARGF(usage());
                 break;
         case 'e':
- if(argc > 1)
+ if(argc > 0)
                         --argc, ++argv;
                 goto run;
         case 'f':
Received on Sun May 10 2015 - 15:20:09 CEST

This archive was generated by hypermail 2.3.0 : Sun May 10 2015 - 15:24:10 CEST