[PATCH font-util 2/2] ucs2any: Dead code removal

Jeremy Huddleston jeremyhu at apple.com
Thu Apr 28 00:46:53 PDT 2011


Found-by: clang static analyzer
Signed-off-by: Jeremy Huddleston <jeremyhu at apple.com>
---
 ucs2any.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/ucs2any.c b/ucs2any.c
index a6e8fb6..cc60544 100644
--- a/ucs2any.c
+++ b/ucs2any.c
@@ -737,7 +737,6 @@ main(int argc, char *argv[])
 			if (p[0] == '0' && (p[1] == 'x' || p[1] == 'X')) {
 				ucs = strtol(p+2, &endp, 16);
 				if (*endp == '\0') goto bad;
-				p = endp;
 			} else
 				goto bad;
 
-- 
1.7.4.1




More information about the xorg-devel mailing list