Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/iscsi/dist/src/lib PR 48338: fix typo making a ...



details:   https://anonhg.NetBSD.org/src/rev/d6c20dd70de6
branches:  trunk
changeset: 790839:d6c20dd70de6
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Oct 24 19:13:25 2013 +0000

description:
PR 48338: fix typo making a boolean expression always true

diffstat:

 external/bsd/iscsi/dist/src/lib/util.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 5329b7c5799a -r d6c20dd70de6 external/bsd/iscsi/dist/src/lib/util.c
--- a/external/bsd/iscsi/dist/src/lib/util.c    Thu Oct 24 19:12:16 2013 +0000
+++ b/external/bsd/iscsi/dist/src/lib/util.c    Thu Oct 24 19:13:25 2013 +0000
@@ -1273,7 +1273,7 @@
        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;



Home | Main Index | Thread Index | Old Index