src/video/SDL_clipboard.c
changeset 7721 bdf8c2c84e14
parent 7719 31b5f9ff36ca
child 8093 b43765095a6f
     1.1 --- a/src/video/SDL_clipboard.c	Thu Aug 29 08:29:51 2013 -0700
     1.2 +++ b/src/video/SDL_clipboard.c	Thu Aug 29 08:30:21 2013 -0700
     1.3 @@ -65,7 +65,7 @@
     1.4      if (_this->HasClipboardText) {
     1.5          return _this->HasClipboardText(_this);
     1.6      } else {
     1.7 -        if ((_this->clipboard_text) && (SDL_strlen(_this->clipboard_text)>0)) {
     1.8 +        if (_this->clipboard_text && _this->clipboard_text[0] != '\0') {
     1.9              return SDL_TRUE;
    1.10          } else {
    1.11              return SDL_FALSE;