From: Keith Packard Date: Thu, 26 Jun 2003 11:17:49 +0000 (+0000) Subject: Permit rr_client_next_notice to return null notice X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=bd8da1e424801d02a88e2e6b76985f33c336b887;p=rrsolve Permit rr_client_next_notice to return null notice --- diff --git a/src/rrsolve.c b/src/rrsolve.c index 99119ac..89325b7 100644 --- a/src/rrsolve.c +++ b/src/rrsolve.c @@ -184,6 +184,10 @@ handle_events (rr_client_t *client) rr_status_str (status)); return; } + if (!notice) { + fprintf (stderr, "No notice during rr_client_next_notice\n"); + continue; + } switch (notice->type) { case RR_NOTICE_GAMEOVER: