Module Name: src Committed By: martin Date: Thu Oct 24 19:13:26 UTC 2013
Modified Files: src/external/bsd/iscsi/dist/src/lib: util.c Log Message: PR 48338: fix typo making a boolean expression always true To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/external/bsd/iscsi/dist/src/lib/util.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/bsd/iscsi/dist/src/lib/util.c diff -u src/external/bsd/iscsi/dist/src/lib/util.c:1.3 src/external/bsd/iscsi/dist/src/lib/util.c:1.4 --- src/external/bsd/iscsi/dist/src/lib/util.c:1.3 Thu Mar 15 04:06:55 2012 +++ src/external/bsd/iscsi/dist/src/lib/util.c Thu Oct 24 19:13:25 2013 @@ -1273,7 +1273,7 @@ HexTextToData(const char *text, uint32_t uint32_t n2; uint32_t len = 0; - if ((text[0] == '0') && (text[1] != 'x' || text[1] != 'X')) { + if ((text[0] == '0') && (text[1] == 'x' || text[1] == 'X')) { /* skip prefix */ text += 2; textLength -= 2;