We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac0915b commit 093fbfdCopy full SHA for 093fbfd
src/video/x11/SDL_x11clipboard.c
@@ -273,6 +273,9 @@ bool X11_SetClipboardData(SDL_VideoDevice *_this)
273
void *X11_GetClipboardData(SDL_VideoDevice *_this, const char *mime_type, size_t *length)
274
{
275
SDL_VideoData *videodata = _this->internal;
276
+
277
+ *length = 0;
278
279
if (!SDL_HasInternalClipboardData(_this, mime_type)) {
280
// This mime type wasn't advertised by the last selection owner.
281
// The atom might still have data, but it's stale, so ignore it.
0 commit comments