src/video/cocoa/SDL_cocoaclipboard.m
changeset 7721 bdf8c2c84e14
parent 7507 885b4aab4190
child 8093 b43765095a6f
     1.1 --- a/src/video/cocoa/SDL_cocoaclipboard.m	Thu Aug 29 08:29:51 2013 -0700
     1.2 +++ b/src/video/cocoa/SDL_cocoaclipboard.m	Thu Aug 29 08:30:21 2013 -0700
     1.3 @@ -95,7 +95,7 @@
     1.4      SDL_bool result = SDL_FALSE;
     1.5      char *text = Cocoa_GetClipboardText(_this);
     1.6      if (text) {
     1.7 -    result = (SDL_strlen(text)>0) ? SDL_TRUE : SDL_FALSE;
     1.8 +        result = text[0] != '\0' ? SDL_TRUE : SDL_FALSE;
     1.9      SDL_free(text);
    1.10      }
    1.11      return result;