mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-26 12:59:18 +01:00
NULL passed to strcmp in Wayland_ShowMessageBox
This commit is contained in:
parent
573c5a5bac
commit
413a2306bc
@ -150,9 +150,11 @@ Wayland_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
|
|||||||
|
|
||||||
/* Check which button got pressed */
|
/* Check which button got pressed */
|
||||||
for (i = 0; i < messageboxdata->numbuttons; i += 1) {
|
for (i = 0; i < messageboxdata->numbuttons; i += 1) {
|
||||||
if (SDL_strcmp(output, messageboxdata->buttons[i].text) == 0) {
|
if (messageboxdata->buttons[i].text != NULL) {
|
||||||
*buttonid = i;
|
if (SDL_strcmp(output, messageboxdata->buttons[i].text) == 0) {
|
||||||
break;
|
*buttonid = i;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user