From a1cc8dc08a9de7ab87b41cc58ffdc126d08b9926 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 ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/a21399479e7c3503a466d6a3aff83e25d44b0b23 Author: Stefan Seyfried Date: 2015-01-26 (Mon, 26 Jan 2015) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- 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;