Prevent crash when pasting in Linux
This commit is contained in:
parent
68a32aa376
commit
02e09224e0
@ -427,7 +427,7 @@ char * clipboard_pull_text()
|
||||
if(glbuffer!=NULL){
|
||||
return mystrdup(glbuffer);
|
||||
} else {
|
||||
return "";
|
||||
return mystrdup("");
|
||||
}
|
||||
}
|
||||
#elif defined(LIN) && defined(SDL_VIDEO_DRIVER_X11)
|
||||
@ -435,7 +435,7 @@ char * clipboard_pull_text()
|
||||
#else
|
||||
printf("Not implemented: get text from clipboard\n");
|
||||
#endif
|
||||
return "";
|
||||
return mystrdup("");
|
||||
}
|
||||
|
||||
int register_extension()
|
||||
|
Loading…
Reference in New Issue
Block a user