summaryrefslogtreecommitdiff
path: root/lib/luacd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/luacd.cpp')
-rw-r--r--lib/luacd.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/luacd.cpp b/lib/luacd.cpp
index 0e10af1..471c8a2 100644
--- a/lib/luacd.cpp
+++ b/lib/luacd.cpp
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: luacd.cpp,v 1.6 2003-12-12 12:45:20 pixel Exp $ */
+/* $Id: luacd.cpp,v 1.7 2003-12-14 21:14:08 pixel Exp $ */
#include "luacd.h"
@@ -860,7 +860,7 @@ void LuaPVD::pushstatics(Lua * L) throw (GeneralException) {
}
int sLua_PVD::PVD_proceed(Lua * L, int n, PVD * pvd, int caller) {
- int r = 0, key_i, value_i;
+ int r = 0, key_i = 0, value_i;
String key_s, value_s;
cddate * value_date;
bool invalid = false, keyisstring;
@@ -870,9 +870,9 @@ int sLua_PVD::PVD_proceed(Lua * L, int n, PVD * pvd, int caller) {
key_i = L->tonumber(2);
} else {
keyisstring = true;
- key_s = L->tonumber(2);
+ key_s = L->tostring(2);
}
-
+
switch (caller) {
case PVD_INDEX:
r = 1;