From 92b7dc051c90418bdf4baf5dd1830a8ef23de0cc 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 Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/1e03544d7e03ce3304dedf571c90cb4133978281 Author: Stefan Seyfried Date: 2015-01-26 (Mon, 26 Jan 2015) --- 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;