]> git.cworth.org Git - rrsolve/commitdiff
Permit rr_client_next_notice to return null notice
authorKeith Packard <keithp@keithp.com>
Thu, 26 Jun 2003 11:17:49 +0000 (11:17 +0000)
committerKeith Packard <keithp@keithp.com>
Thu, 26 Jun 2003 11:17:49 +0000 (11:17 +0000)
src/rrsolve.c

index 99119ac9f109c8bb28ae528b137b7ba7b6cb2d1f..89325b7b2f9afb8afd50ed42db39a53912d9a10e 100644 (file)
@@ -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: