Explorar o código

Make st work with a plain -e command.

Christoph Lohmann %!s(int64=12) %!d(string=hai) anos
pai
achega
684cf55a0d
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      st.c

+ 2 - 1
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());