mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-24 11:40:25 +01:00
added null ptr check
This commit is contained in:
parent
5fdeb52e5d
commit
20b331c2f6
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue