mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02: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:
|
case GLUT_FCB_SELECT:
|
||||||
return __glutCurrentMenu->fselect;
|
return __glutCurrentMenu->fselect;
|
||||||
case GLUT_FCB_TIMER:
|
case GLUT_FCB_TIMER:
|
||||||
return __glutTimerList->ffunc;
|
return __glutTimerList ? __glutTimerList->ffunc : NULL;
|
||||||
default:
|
default:
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue