diff src/video/SDL_clipboard.c @ 4500:eff4e88cc1e8

Added Windows clipboard support
author Sam Lantinga <slouken@libsdl.org>
date Thu, 08 Jul 2010 05:43:34 -0700
parents dbbfdb9ea716
children b577f47379f3
line wrap: on
line diff
--- a/src/video/SDL_clipboard.c	Thu Jul 08 00:35:58 2010 -0700
+++ b/src/video/SDL_clipboard.c	Thu Jul 08 05:43:34 2010 -0700
@@ -30,6 +30,9 @@
 {
     SDL_VideoDevice *_this = SDL_GetVideoDevice();
 
+    if (!text) {
+        text = "";
+    }
     if (_this->SetClipboardText) {
         return _this->SetClipboardText(_this, text);
     } else {