Module Name: xsrc Committed By: wiz Date: Fri Dec 11 15:33:47 UTC 2015
Modified Files: xsrc/external/mit/xorg-server/dist/hw/xfree86/dri2: dri2.c Log Message: Fix some uninitialized variable warnings with clang. To generate a diff of this commit: cvs rdiff -u -r1.1.1.7 -r1.2 \ xsrc/external/mit/xorg-server/dist/hw/xfree86/dri2/dri2.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: xsrc/external/mit/xorg-server/dist/hw/xfree86/dri2/dri2.c diff -u xsrc/external/mit/xorg-server/dist/hw/xfree86/dri2/dri2.c:1.1.1.7 xsrc/external/mit/xorg-server/dist/hw/xfree86/dri2/dri2.c:1.2 --- xsrc/external/mit/xorg-server/dist/hw/xfree86/dri2/dri2.c:1.1.1.7 Mon Jun 3 07:34:24 2013 +++ xsrc/external/mit/xorg-server/dist/hw/xfree86/dri2/dri2.c Fri Dec 11 15:33:47 2015 @@ -201,7 +201,7 @@ typedef struct DRI2DrawableRefRec { static DRI2DrawableRefPtr DRI2LookupDrawableRef(DRI2DrawablePtr pPriv, XID id) { - DRI2DrawableRefPtr ref; + DRI2DrawableRefPtr ref = NULL; list_for_each_entry(ref, &pPriv->reference_list, link) { if (ref->id == id) @@ -267,7 +267,7 @@ static int DRI2DrawableGone(pointer p, X { DRI2DrawablePtr pPriv = p; DRI2ScreenPtr ds = pPriv->dri2_screen; - DRI2DrawableRefPtr ref, next; + DRI2DrawableRefPtr ref = NULL, next; WindowPtr pWin; PixmapPtr pPixmap; DrawablePtr pDraw; @@ -534,7 +534,7 @@ static void DRI2InvalidateDrawable(DrawablePtr pDraw) { DRI2DrawablePtr pPriv = DRI2GetDrawable(pDraw); - DRI2DrawableRefPtr ref; + DRI2DrawableRefPtr ref = NULL; if (!pPriv) return;