Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Whoops, return "" even if the window is invalid.
  • Loading branch information
slouken committed Aug 29, 2010
1 parent ba18891 commit f137e4811ac7f6b44af311baafc5670200ab7252
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/video/SDL_video.c
@@ -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 : "";
}

0 comments on commit f137e48

Please sign in to comment.