commit | 249bd05038df27cb39fcc5fe25d9f47eb33f68a0 | [log] [tgz] |
---|---|---|
author | Ting-Yuan Huang <laszio@google.com> | Tue Aug 15 17:01:33 2017 -0700 |
committer | Ting-Yuan Huang <laszio@google.com> | Tue Sep 05 16:46:40 2017 -0700 |
tree | 058733002da735c9650217de19fae36d926669e4 | |
parent | 2c3a2a8c5c7fcbc822b42b052f9de253821cc7ce [diff] [blame] |
Suppress false-positive static analyzer warnings by hinting the analyzer with assertions. Test: built without seeing warnings. Change-Id: I0d43d4ceafd7f68be89cad6c930c85ee7b6d5165
diff --git a/liblog/local_logger.c b/liblog/local_logger.c index 522867d..563cb3f 100644 --- a/liblog/local_logger.c +++ b/liblog/local_logger.c
@@ -222,6 +222,7 @@ log->last[logId] = node->prev; } list_remove(node); + LOG_ALWAYS_FATAL_IF(node == log->last[logId], "corrupted list"); free(e); } /* add entry to list */