[PATCH libxkbfile 06/12] Remove unnecessary NULL check

Pauli Nieminen ext-pauli.nieminen at nokia.com
Wed Jul 21 05:02:50 PDT 2010


XGetWindowProperty quarentees that data is valid pointer if it
successed.

Signed-off-by: Pauli Nieminen <ext-pauli.nieminen at nokia.com>
---
 src/maprules.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/maprules.c b/src/maprules.c
index d7d7e8d..e7ba8c4 100644
--- a/src/maprules.c
+++ b/src/maprules.c
@@ -1387,7 +1387,7 @@ Status		rtrn;
 
     out=(char*)data;
     end=out+nitems;
-    if (out && (*out) && rf_rtrn)
+    if (*out && rf_rtrn)
 	 *rf_rtrn= _XkbDupString(out);
     out+=strlen(out)+1;
 
-- 
1.6.3.3



More information about the xorg-devel mailing list