Source

pygame / src / scrap_win.c

Diff from to

src/scrap_win.c

     {
         HANDLE hMem;
         char *src;
-        
+        src = NULL;
+
         hMem = GetClipboardData (format);
         if (hMem)
         {
                 }
                 *count = GlobalSize (hMem);
             }
-            
+
             if (format == CF_DIB || format == CF_DIBV5)
             {
                 /* Count will be increased accordingly in
             }
             else if (*count != 0)
             {
+                /* weird error, shouldn't get here. */
+                if(!src) {
+                    return NULL;
+                }
+
                 retval = malloc (*count);
                 if (retval)
                 {