From dec6398313bb5c808bf00bf3fcd0996edb8c773b Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Thu, 26 Jun 2003 11:17:33 +0000 Subject: [PATCH] Permit rr_client_next_notice to return null notice --- src/grrobot.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/grrobot.c b/src/grrobot.c index 98f14f2..2f3b533 100644 --- a/src/grrobot.c +++ b/src/grrobot.c @@ -190,8 +190,11 @@ grr_game_read_notices (grr_game_t *game) if (status) { fprintf (stderr, "Error during rr_client_next_notice: %s\n", rr_status_str (status)); - gtk_exit (1); - return; + exit (1); + } + if (!notice) { + fprintf (stderr, "Missing notice\n"); + continue; } switch (notice->type) { -- 2.45.2