Permalink
Browse files

Moved some variables from global to local scope in order to fix githu…

…b issue #5 and another similar possible bug.

"When script is executing&new conversation opens, output gets sent to new conversation"
  • Loading branch information...
1 parent d3598be commit 64ac1ebfdbe2d4c515b626b23bb172eb01b2bb39 @Harvie committed Sep 28, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 answerscripts.c
View
@@ -32,15 +32,15 @@
char *message = NULL;
char *hook_script = NULL;
-char response[ANSWERSCRIPTS_LINE_LENGTH+1];
-int i;
typedef struct {
FILE *pipe;
PurpleConversation *conv;
} 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;

0 comments on commit 64ac1eb

Please sign in to comment.