X-Git-Url: https://git.harvie.cz/?p=mirrors%2Flibpurple-core-answerscripts.git;a=blobdiff_plain;f=answerscripts.c;fp=answerscripts.c;h=3e629db9a4191d6e118556a35f0868d9de96069f;hp=ed13b83aee94ca659cbcbaebaebe1416a6adc157;hb=6257f1e391f5ccc9be54d345861af0da33212892;hpb=9b2bdf343f82c9c9f669585f7b047d34bc80ac61 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; }