Skip to content

Commit dc1bf60

Browse files
SackzementKontrabant
authored andcommitted
SDL_waylanddatamanager.c:Wayland_data_offer_check_source(): Return when offer is NULL
1 parent 507ee03 commit dc1bf60

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/video/wayland/SDL_waylanddatamanager.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@ static void Wayland_data_offer_check_source(SDL_WaylandDataOffer *offer, const c
393393

394394
if (!offer) {
395395
SDL_SetError("Invalid data offer");
396+
return;
396397
}
397398
data_device = offer->data_device;
398399
if (!data_device) {

0 commit comments

Comments
 (0)