[PATCH] savage: Fix initialization typo in SAVAGEDRIMoveBuffers
Tormod Volden
lists.tormod at gmail.com
Sun Jan 23 14:45:49 PST 2011
From: Tormod Volden <debian.tormod at gmail.com>
This was warned about when building with -O2, and seems
to be a copy-and-paste glitch.
savage_dri.c: In function ‘SAVAGEDRIMoveBuffers’:
savage_dri.c:1445: warning: ‘pptNew2’ may be used uninitialized in this function
---
Now it really should be free of warnings...
src/savage_dri.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/savage_dri.c b/src/savage_dri.c
index 2c7a077..d43b8eb 100644
--- a/src/savage_dri.c
+++ b/src/savage_dri.c
@@ -1457,7 +1457,7 @@ SAVAGEDRIMoveBuffers(WindowPtr pParent, DDXPointRec ptOldOrg,
pboxNew1 = 0;
pptNew1 = 0;
pboxNew2 = 0;
- pboxNew2 = 0;
+ pptNew2 = 0;
pptSrc = &ptOldOrg;
dx = pParent->drawable.x - ptOldOrg.x;
--
1.7.0.4
More information about the xorg-devel
mailing list