diff options
author | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2017-11-30 11:17:05 +0100 |
---|---|---|
committer | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2017-11-30 11:17:05 +0100 |
commit | 2b918fd9b8438eeef8f33556723140263e36f731 (patch) | |
tree | 0bdda333a8822fe71c60e42d19a3078019ee38d0 /src/perl/textui | |
parent | b332d448f7e3c7e4b40ea4a08932d0bd46007bbf (diff) | |
download | irssi-2b918fd9b8438eeef8f33556723140263e36f731.zip |
move decls before code
Diffstat (limited to 'src/perl/textui')
-rw-r--r-- | src/perl/textui/Statusbar.xs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/perl/textui/Statusbar.xs b/src/perl/textui/Statusbar.xs index 8b0e5f65..111deaa7 100644 --- a/src/perl/textui/Statusbar.xs +++ b/src/perl/textui/Statusbar.xs @@ -67,7 +67,7 @@ static void perl_statusbar_event(char *function, SBAR_ITEM_REC *item, if (SvTRUE(ERRSV)) { PERL_SCRIPT_REC *script; - char *package; + char *package, *error; package = perl_function_get_package(function); script = perl_script_find_package(package); @@ -78,7 +78,7 @@ static void perl_statusbar_event(char *function, SBAR_ITEM_REC *item, script_unregister_statusbars(script); } - char *error = g_strdup(SvPV_nolen(ERRSV)); + error = g_strdup(SvPV_nolen(ERRSV)); signal_emit("script error", 2, script, error); g_free(error); } else { |