src/video/SDL_video.c
changeset 7721 bdf8c2c84e14
parent 7720 f9a649383362
child 7723 aea98cc3e696
     1.1 --- a/src/video/SDL_video.c	Thu Aug 29 08:29:51 2013 -0700
     1.2 +++ b/src/video/SDL_video.c	Thu Aug 29 08:30:21 2013 -0700
     1.3 @@ -1453,7 +1453,7 @@
     1.4      CHECK_WINDOW_MAGIC(window, NULL);
     1.5  
     1.6      /* Input validation */
     1.7 -    if (name == NULL || SDL_strlen(name) == 0) {
     1.8 +    if (name == NULL || name[0] == '\0') {
     1.9        SDL_InvalidParamError("name");
    1.10        return NULL;
    1.11      }
    1.12 @@ -1500,7 +1500,7 @@
    1.13      CHECK_WINDOW_MAGIC(window, NULL);
    1.14  
    1.15      /* Input validation */
    1.16 -    if (name == NULL || SDL_strlen(name) == 0) {
    1.17 +    if (name == NULL || name[0] == '\0') {
    1.18        SDL_InvalidParamError("name");
    1.19        return NULL;
    1.20      }