mirror of https://github.com/rusefi/lua.git
details (aborts with invalid arguments)
This commit is contained in:
parent
43461d267f
commit
a78eecee48
5
lua.c
5
lua.c
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
** $Id: lua.c,v 1.10 1997/12/19 18:34:23 roberto Exp roberto $
|
** $Id: lua.c,v 1.11 1997/12/22 18:05:23 roberto Exp roberto $
|
||||||
** Lua stand-alone interpreter
|
** Lua stand-alone interpreter
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
|
@ -135,6 +135,7 @@ int main (int argc, char *argv[])
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
print_message();
|
print_message();
|
||||||
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (strchr(argv[i], '='))
|
else if (strchr(argv[i], '='))
|
||||||
|
@ -146,7 +147,7 @@ int main (int argc, char *argv[])
|
||||||
fprintf(stderr, "lua: cannot execute file ");
|
fprintf(stderr, "lua: cannot execute file ");
|
||||||
perror(argv[i]);
|
perror(argv[i]);
|
||||||
}
|
}
|
||||||
return 1;
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue