[PATCH xf86-input-aiptek] Address compiler warning.

Trevor Woerner twoerner at gmail.com
Mon Jan 17 20:04:50 PST 2011


From: Trevor Woerner <twoerner at gmail.com>

When compiling gcc warns:

    'rc' may be used uninitialized in this function

which is plausible if none of the "if/else" cases are matched.

Signed-off-by: Trevor Woerner <twoerner at gmail.com>
---
 src/xf86Aiptek.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/xf86Aiptek.c b/src/xf86Aiptek.c
index f128fa0..d9a7665 100644
--- a/src/xf86Aiptek.c
+++ b/src/xf86Aiptek.c
@@ -1808,7 +1808,7 @@ xf86AiptekInit(InputDriverPtr    drv,
     InputInfoPtr    pInfos;
     char*             s;
     int               shared;
-    int               rc;
+    int               rc = BadValue;
 
     aiptekDrv = drv;
 
-- 
1.7.4.rc1.3.gbc2d1



More information about the xorg-devel mailing list