lua

A copy of the Lua development repository
Log | Files | Refs | README

commit fb6796ba06e5cfc6040cddec90508a379a3abd50
parent 88ef06f4f3074d54743e178aaf61fa464b2065b4
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Fri, 26 Dec 2014 12:43:20 -0200

removed useless initializations

Diffstat:
Mlapi.c | 4++--
Mlobject.c | 4++--
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/lapi.c b/lapi.c @@ -1,5 +1,5 @@ /* -** $Id: lapi.c,v 2.242 2014/11/02 19:19:04 roberto Exp roberto $ +** $Id: lapi.c,v 2.243 2014/11/12 13:28:54 roberto Exp roberto $ ** Lua API ** See Copyright Notice in lua.h */ @@ -676,7 +676,7 @@ LUA_API void lua_createtable (lua_State *L, int narray, int nrec) { LUA_API int lua_getmetatable (lua_State *L, int objindex) { const TValue *obj; - Table *mt = NULL; + Table *mt; int res = 0; lua_lock(L); obj = index2addr(L, objindex); diff --git a/lobject.c b/lobject.c @@ -1,5 +1,5 @@ /* -** $Id: lobject.c,v 2.99 2014/11/04 19:16:25 roberto Exp roberto $ +** $Id: lobject.c,v 2.100 2014/11/21 12:15:57 roberto Exp roberto $ ** Some generic functions over Lua objects ** See Copyright Notice in lua.h */ @@ -189,7 +189,7 @@ static lua_Number lua_strx2number (const char *s, char **endptr) { int sigdig = 0; /* number of significant digits */ int nosigdig = 0; /* number of non-significant digits */ int e = 0; /* exponent correction */ - int neg = 0; /* 1 if number is negative */ + int neg; /* 1 if number is negative */ int dot = 0; /* true after seen a dot */ *endptr = cast(char *, s); /* nothing is valid yet */ while (lisspace(cast_uchar(*s))) s++; /* skip initial spaces */