src/video/SDL_video.c
changeset 9474 067b78126485
parent 9461 409b20ba3e70
child 9537 ff30c198864e
     1.1 --- a/src/video/SDL_video.c	Wed Apr 08 01:42:47 2015 -0400
     1.2 +++ b/src/video/SDL_video.c	Wed Apr 08 02:00:14 2015 -0400
     1.3 @@ -1502,11 +1502,8 @@
     1.4          return;
     1.5      }
     1.6      SDL_free(window->title);
     1.7 -    if (title && *title) {
     1.8 -        window->title = SDL_strdup(title);
     1.9 -    } else {
    1.10 -        window->title = NULL;
    1.11 -    }
    1.12 +
    1.13 +    window->title = SDL_strdup(title ? title : "");
    1.14  
    1.15      if (_this->SetWindowTitle) {
    1.16          _this->SetWindowTitle(_this, window);