Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/acpica/dist/compiler CID 1298707: Change c...



details:   https://anonhg.NetBSD.org/src/rev/384943b28d47
branches:  trunk
changeset: 340189:384943b28d47
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Aug 26 01:58:55 2015 +0000

description:
CID 1298707:  Change confusing code that makes coverity think that Length
is uninitalized (we want length to be zero so instead of setting it to 0,
we check if it not zero and then we set it if it is not?!?!)

diffstat:

 sys/external/bsd/acpica/dist/compiler/dttable.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r dbe84eee1e83 -r 384943b28d47 sys/external/bsd/acpica/dist/compiler/dttable.c
--- a/sys/external/bsd/acpica/dist/compiler/dttable.c   Wed Aug 26 01:54:57 2015 +0000
+++ b/sys/external/bsd/acpica/dist/compiler/dttable.c   Wed Aug 26 01:58:55 2015 +0000
@@ -3474,7 +3474,7 @@
 
     /* Now we can actually compile the parse tree */
 
-    if (Length && *Length)
+    if (Length)
     {
         *Length = 0;
     }



Home | Main Index | Thread Index | Old Index