summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorpixel <pixel>2007-05-26 19:40:46 +0000
committerpixel <pixel>2007-05-26 19:40:46 +0000
commitf40f94b4c18d6638662aef09aef4de17ad38e672 (patch)
tree6d3fd143dc2941accfaeff9e12a31b84cf6ee8b5 /lib
parent3e2b9deb0d6409aea9c0771f746bdb78f11772c4 (diff)
Compilation fix.
Diffstat (limited to 'lib')
-rw-r--r--lib/LuaTask.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/LuaTask.cc b/lib/LuaTask.cc
index cc12d76..dfb12d7 100644
--- a/lib/LuaTask.cc
+++ b/lib/LuaTask.cc
@@ -41,6 +41,7 @@ String LuaTask::GetName() {
}
int LuaTask::Do() throw (GeneralException) {
+ int nargs = 0;
switch (current) {
case 0:
current = 1;
@@ -50,8 +51,6 @@ int LuaTask::Do() throw (GeneralException) {
L->resume(nargs);
}
case 2:
- int nargs = 0;
-
#ifndef LUATASK_OMIT_HTTPCLIENT
if (task == "HttpClient") {
LuaBuffer o(b);