From a21399479e7c3503a466d6a3aff83e25d44b0b23 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Mon, 26 Jan 2015 13:51:20 +0100 Subject: [PATCH] luaclient: fix "jump to...crosses initialization of" error --- lib/luaclient/luaclient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/luaclient/luaclient.cpp b/lib/luaclient/luaclient.cpp index 7344dcad6..9eb3dd47c 100644 --- a/lib/luaclient/luaclient.cpp +++ b/lib/luaclient/luaclient.cpp @@ -76,6 +76,7 @@ int main(int argc, char** argv) int res = -1; const char *fun = NULL; char *resp = NULL; + char result[size]; if (!client.Send(data, size)) { fun = "Send failed"; @@ -85,7 +86,6 @@ int main(int argc, char** argv) fun = "Recv (1) failed"; goto fail; } - char result[size]; if (!client.Recv(result, size)) { fun = "Recv (2) failed"; goto fail;