Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Whoops, return "" even if the window is invalid.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Aug 29, 2010
1 parent ba18891 commit f137e48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/SDL_video.c
Expand Up @@ -1112,7 +1112,7 @@ SDL_SetWindowTitle(SDL_Window * window, const char *title)
const char *
SDL_GetWindowTitle(SDL_Window * window)
{
CHECK_WINDOW_MAGIC(window, NULL);
CHECK_WINDOW_MAGIC(window, "");

return window->title ? window->title : "";
}
Expand Down

0 comments on commit f137e48

Please sign in to comment.