mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 07:32:04 +02:00
move decls before code
This commit is contained in:
parent
b332d448f7
commit
2b918fd9b8
4 changed files with 16 additions and 13 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue