src/video/SDL_clipboard.c
changeset 4500 eff4e88cc1e8
parent 4495 dbbfdb9ea716
child 4506 b577f47379f3
     1.1 --- a/src/video/SDL_clipboard.c	Thu Jul 08 00:35:58 2010 -0700
     1.2 +++ b/src/video/SDL_clipboard.c	Thu Jul 08 05:43:34 2010 -0700
     1.3 @@ -30,6 +30,9 @@
     1.4  {
     1.5      SDL_VideoDevice *_this = SDL_GetVideoDevice();
     1.6  
     1.7 +    if (!text) {
     1.8 +        text = "";
     1.9 +    }
    1.10      if (_this->SetClipboardText) {
    1.11          return _this->SetClipboardText(_this, text);
    1.12      } else {