From: Brian Date: Thu, 13 Sep 2007 15:26:27 +0000 (-0600) Subject: added null ptr check X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=20b331c2f6fa4e16f0c473f27914644e2bcd2b39;p=mesa.git added null ptr check --- diff --git a/src/glut/glx/glut_fcb.c b/src/glut/glx/glut_fcb.c index b272d0e2278..c8a3422b360 100644 --- a/src/glut/glx/glut_fcb.c +++ b/src/glut/glx/glut_fcb.c @@ -154,7 +154,7 @@ __glutGetFCB(int which) case GLUT_FCB_SELECT: return __glutCurrentMenu->fselect; case GLUT_FCB_TIMER: - return __glutTimerList->ffunc; + return __glutTimerList ? __glutTimerList->ffunc : NULL; default: return NULL; }