diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-02-27 18:15:36 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-02-27 18:15:36 -0300 |
| commit | 622e44871069697b5591235c0362c0977db8c3ea (patch) | |
| tree | 71289f8dc4aabeef27a80fd88861002dff37aca1 | |
| parent | 0fe2576a39633ab7873f9d4fd989f1e5203a5725 (diff) | |
| download | lua-622e44871069697b5591235c0362c0977db8c3ea.tar.gz lua-622e44871069697b5591235c0362c0977db8c3ea.tar.bz2 lua-622e44871069697b5591235c0362c0977db8c3ea.zip | |
removed useless test (argv[i] cannot be NULL when i<argc)
| -rw-r--r-- | lua.c | 3 |
1 files changed, 1 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lua.c,v 1.186 2010/02/11 17:12:27 roberto Exp roberto $ | 2 | ** $Id: lua.c,v 1.187 2010/02/18 19:18:41 roberto Exp roberto $ |
| 3 | ** Lua stand-alone interpreter | 3 | ** Lua stand-alone interpreter |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -374,7 +374,6 @@ static int collectargs (char **argv, int *pi, int *pv, int *pe) { | |||
| 374 | static int runargs (lua_State *L, char **argv, int n) { | 374 | static int runargs (lua_State *L, char **argv, int n) { |
| 375 | int i; | 375 | int i; |
| 376 | for (i = 1; i < n; i++) { | 376 | for (i = 1; i < n; i++) { |
| 377 | if (argv[i] == NULL) continue; | ||
| 378 | lua_assert(argv[i][0] == '-'); | 377 | lua_assert(argv[i][0] == '-'); |
| 379 | switch (argv[i][1]) { /* option */ | 378 | switch (argv[i][1]) { /* option */ |
| 380 | case 'e': { | 379 | case 'e': { |
