X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=answerscripts.c;h=3e629db9a4191d6e118556a35f0868d9de96069f;hb=49bc37a94b29bb061b858e6fef49a55f3d5fefd0;hp=ebbaa1f6a1f2c078aafeda74a48e4db235c1c3dd;hpb=5d3f875eda2b9f045d5313cf904058925c2d82f3;p=mirrors%2Flibpurple-core-answerscripts.git 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()) "