From: Tomas Mudrunka Date: Wed, 4 Nov 2015 22:44:29 +0000 (+0100) Subject: debug msg added X-Git-Url: http://git.harvie.cz/?p=mirrors%2Flibpurple-core-answerscripts.git;a=commitdiff_plain;h=6257f1e391f5ccc9be54d345861af0da33212892 debug msg added --- diff --git a/answerscripts.c b/answerscripts.c index ed13b83..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; }