From 64ac1ebfdbe2d4c515b626b23bb172eb01b2bb39 Mon Sep 17 00:00:00 2001 From: Harvie Date: Tue, 28 Sep 2010 22:13:00 +0200 Subject: [PATCH] Moved some variables from global to local scope in order to fix github issue #5 and another similar possible bug. "When script is executing&new conversation opens, output gets sent to new conversation" --- answerscripts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/answerscripts.c b/answerscripts.c index f84dcc6..ca1a412 100755 --- a/answerscripts.c +++ b/answerscripts.c @@ -32,8 +32,6 @@ char *message = NULL; char *hook_script = NULL; -char response[ANSWERSCRIPTS_LINE_LENGTH+1]; -int i; typedef struct { FILE *pipe; @@ -41,6 +39,8 @@ typedef struct { } answerscripts_job; int answerscripts_process_message_cb(answerscripts_job *job) { + int i; + char response[ANSWERSCRIPTS_LINE_LENGTH+1]; FILE *pipe = job->pipe; PurpleConversation *conv = job->conv; -- 2.30.2