]> git.cworth.org Git - rrsolve/blobdiff - src/rrsolve.c
Permit rr_client_next_notice to return null notice
[rrsolve] / 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: