Fix type of c in execsh()

C is compared against EOF, so it cannot be char.
This commit is contained in:
Roberto E. Vargas Caballero 2018-03-04 14:56:44 +01:00 committed by sin
parent a5d268c409
commit 0732529fef

4
ed.c
View File

@ -888,8 +888,8 @@ static void
execsh(void) execsh(void)
{ {
static String cmd; static String cmd;
char c, *p; char *p;
int repl = 0; int c, repl = 0;
skipblank(); skipblank();
if ((c = input()) != '!') { if ((c = input()) != '!') {