added null ptr check
authorBrian <brian.paul@tungstengraphics.com>
Thu, 13 Sep 2007 15:26:27 +0000 (09:26 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Thu, 13 Sep 2007 15:26:27 +0000 (09:26 -0600)
src/glut/glx/glut_fcb.c

index b272d0e22783984779b5437e48852291bc508322..c8a3422b3602b70b739e75f2be420d5bba79e89b 100644 (file)
@@ -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;
   }