summaryrefslogtreecommitdiff
path: root/src/glut/glx
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-09-13 09:26:27 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-09-13 09:26:27 -0600
commit20b331c2f6fa4e16f0c473f27914644e2bcd2b39 (patch)
tree73650d33a4ebb31ad0171c1cfef51d4ecadbe09e /src/glut/glx
parent5fdeb52e5d21bfb7feff2253c7d9e18e6b3cb252 (diff)
added null ptr check
Diffstat (limited to 'src/glut/glx')
-rw-r--r--src/glut/glx/glut_fcb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glut/glx/glut_fcb.c b/src/glut/glx/glut_fcb.c
index b272d0e227..c8a3422b36 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;
}