[SVN] r4098 - trunk/SDL/src/video/Xext/Xxf86vm

svn-owner at libsdl.org svn-owner at libsdl.org
Mon Sep 15 13:48:51 PDT 2008


Author: icculus
Date: 2008-09-15 13:48:51 -0700 (Mon, 15 Sep 2008)
New Revision: 4098

Modified:
   trunk/SDL/src/video/Xext/Xxf86vm/XF86VMode.c
Log:
Removed zap_ptr hack from Bugzilla #602...it was incorrect.

(The actual bug was in SDL code removed from the 1.3 codebase.)


Modified: trunk/SDL/src/video/Xext/Xxf86vm/XF86VMode.c
===================================================================
--- trunk/SDL/src/video/Xext/Xxf86vm/XF86VMode.c	2008-09-15 20:47:55 UTC (rev 4097)
+++ trunk/SDL/src/video/Xext/Xxf86vm/XF86VMode.c	2008-09-15 20:48:51 UTC (rev 4098)
@@ -210,13 +210,6 @@
     return True;
 }
 
-/* this is to prevent an unaligned memory write on CPUs that need that. */
-static void
-zap_ptr(char *ptr, size_t size)
-{
-    memset(ptr, '\0', size);
-}
-
 Bool SDL_NAME(XF86VidModeGetModeLine) (dpy, screen, dotclock, modeline)
      Display *
          dpy;
@@ -292,7 +285,7 @@
         _XRead(dpy, (char *) modeline->private,
                modeline->privsize * sizeof(INT32));
     } else {
-        zap_ptr((char *) &modeline->private, sizeof(modeline->private));
+        modeline->private = NULL;
     }
     UnlockDisplay(dpy);
     SyncHandle();



More information about the SVN mailing list