GIT.Harvie.CZ
/
mirrors
/
libpurple-core-answerscripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc64730
)
Fixed crash (NULL pointer dereference)
author
Harvie
<tomas@mudrunka.cz>
Tue, 18 Jan 2011 13:20:48 +0000
(14:20 +0100)
committer
Harvie
<tomas@mudrunka.cz>
Tue, 18 Jan 2011 13:20:48 +0000
(14:20 +0100)
answerscripts.c
patch
|
blob
|
blame
|
history
diff --git
a/answerscripts.c
b/answerscripts.c
index 25d6cd6465e6b22ce79b08be197dd126eed5ba1d..54b757631f7a0ac969bc6f604b8392746b650fd0 100755
(executable)
--- a/
answerscripts.c
+++ b/
answerscripts.c
@@
-117,6
+117,10
@@
static void received_im_msg_cb(PurpleAccount *account, char *who, char *buffer,
//Launch job on background
answerscripts_job *job = (answerscripts_job*) malloc(sizeof(answerscripts_job));
job->pipe = popen(hook_script, "r");
+ if(job->pipe == NULL) {
+ fprintf(stderr,"Can't execute %s\n", hook_script);
+ return;
+ }
job->conv = conv;
#ifndef __WIN32__
This page took
0.299673 seconds
and
4
git commands to generate.