Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > by-pkgid > 9aa07eb46bd5c65e95298bbfe9c6f5fb > files > 1

lua-lposix-1.0-3mdv2009.0.src.rpm

--- lposix.c.old	2007-07-16 21:51:40.000000000 +0800
+++ lposix.c	2007-07-16 21:54:01.000000000 +0800
@@ -64,8 +64,7 @@
 	}
 	else
 	{
-		int j=luaL_findstring(luaL_checkstring(L, i), S);
-		if (j==-1) luaL_argerror(L, i, "unknown selector");
+		int j=luaL_checkoption(L, i, NULL, S);
 		return F(L, j, data);
 	}
 }