From: danw Date: Thu, 19 Feb 1998 21:22:25 +0000 (+0000) Subject: don't call the callback if it's NULL... X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/commitdiff_plain/0046242c269470a1f3f63cdcfa144c171eebc40d don't call the callback if it's NULL... --- diff --git a/lib/mr_query.c b/lib/mr_query.c index 820c9108..798fbfb8 100644 --- a/lib/mr_query.c +++ b/lib/mr_query.c @@ -51,7 +51,7 @@ int mr_query(char *name, int argc, char **argv, while ((status = reply.u.mr_status) == MR_MORE_DATA) { - if (!stopcallbacks) + if (callproc && !stopcallbacks) stopcallbacks = (*callproc)(reply.mr_argc, reply.mr_argv, callarg); mr_destroy_reply(reply);