# HG changeset patch # User Sam Lantinga # Date 1283124484 25200 # Node ID 231f8a1c5eddd330fcfa64c5d4e2f6c0cf722f23 # Parent 81a6a9f396ba0b4c934fdf2e1b575f1df50f073f Whoops, return "" even if the window is invalid. diff -r 81a6a9f396ba -r 231f8a1c5edd src/video/SDL_video.c --- a/src/video/SDL_video.c Sun Aug 29 16:26:35 2010 -0700 +++ b/src/video/SDL_video.c Sun Aug 29 16:28:04 2010 -0700 @@ -1112,7 +1112,7 @@ const char * SDL_GetWindowTitle(SDL_Window * window) { - CHECK_WINDOW_MAGIC(window, NULL); + CHECK_WINDOW_MAGIC(window, ""); return window->title ? window->title : ""; }