mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-30 21:37:43 +08:00
SDL_waylanddatamanager.c:Wayland_data_offer_check_source(): Return when offer is NULL
This commit is contained in:
committed by
Frank Praznik
parent
507ee033cc
commit
dc1bf60b15
@@ -393,6 +393,7 @@ static void Wayland_data_offer_check_source(SDL_WaylandDataOffer *offer, const c
|
|||||||
|
|
||||||
if (!offer) {
|
if (!offer) {
|
||||||
SDL_SetError("Invalid data offer");
|
SDL_SetError("Invalid data offer");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
data_device = offer->data_device;
|
data_device = offer->data_device;
|
||||||
if (!data_device) {
|
if (!data_device) {
|
||||||
|
|||||||
Reference in New Issue
Block a user