From: Keith Packard Date: Thu, 26 Jun 2003 11:17:33 +0000 (+0000) Subject: Permit rr_client_next_notice to return null notice X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;ds=sidebyside;h=dec6398313bb5c808bf00bf3fcd0996edb8c773b;p=grrobot Permit rr_client_next_notice to return null notice --- 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) {