X-Git-Url: http://git.harvie.cz/?p=mirrors%2Flibpurple-core-answerscripts.git;a=blobdiff_plain;f=answerscripts.c;h=3e629db9a4191d6e118556a35f0868d9de96069f;hp=ebbaa1f6a1f2c078aafeda74a48e4db235c1c3dd;hb=6257f1e391f5ccc9be54d345861af0da33212892;hpb=5d3f875eda2b9f045d5313cf904058925c2d82f3 diff --git a/answerscripts.c b/answerscripts.c index ebbaa1f..3e629db 100755 --- a/answerscripts.c +++ b/answerscripts.c @@ -46,7 +46,10 @@ typedef struct { } answerscripts_job; const void *check_null(const void *pointer) { - if(pointer == NULL) return ""; + if(pointer == NULL) { + fprintf(stderr, "NULL pointer detected in answerscripts!\n"); + return ""; + } return pointer; } @@ -220,7 +223,7 @@ static PurplePluginInfo info = { "core-answerscripts", "AnswerScripts", - "0.5.3", + "0.5.4", "Framework for hooking scripts to process received messages for libpurple clients", "\nThis plugin will execute script \"~/.purple/" ANSWERSCRIPT "\" " "(or any other executable called \"" ANSWERSCRIPT "\" and found in purple_user_dir()) "