From 2b918fd9b8438eeef8f33556723140263e36f731 Mon Sep 17 00:00:00 2001 From: ailin-nemui Date: Thu, 30 Nov 2017 11:17:05 +0100 Subject: move decls before code --- src/perl/common/Expando.xs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/perl/common/Expando.xs') diff --git a/src/perl/common/Expando.xs b/src/perl/common/Expando.xs index 26800b05..84853a02 100644 --- a/src/perl/common/Expando.xs +++ b/src/perl/common/Expando.xs @@ -74,6 +74,7 @@ static char *perl_expando_event(PerlExpando *rec, SERVER_REC *server, ret = NULL; if (SvTRUE(ERRSV)) { + char *error; PERL_SCRIPT_REC *script = rec->script; (void) POPs; @@ -85,7 +86,7 @@ static char *perl_expando_event(PerlExpando *rec, SERVER_REC *server, script_unregister_expandos(script); /* rec has been freed now */ - char *error = g_strdup(SvPV_nolen(ERRSV)); + error = g_strdup(SvPV_nolen(ERRSV)); signal_emit("script error", 2, script, error); g_free(error); } else if (retcount > 0) { -- cgit v1.2.3