From bd8da1e424801d02a88e2e6b76985f33c336b887 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Thu, 26 Jun 2003 11:17:49 +0000 Subject: [PATCH] Permit rr_client_next_notice to return null notice --- src/rrsolve.c | 4 ++++ 1 file changed, 4 insertions(+) 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: -- 2.43.0