summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);