pinosaur
/
st.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1813b1
)
Make st work with a plain -e command.
author
Christoph Lohmann
<20h@r-36.net>
Wed, 10 Apr 2013 15:48:32 +0000
(17:48 +0200)
committer
Christoph Lohmann
<20h@r-36.net>
Wed, 10 Apr 2013 15:48:32 +0000
(17:48 +0200)
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
c938ff4
..
93058b9
100644
(file)
--- 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());