Fix: handle unknown enum mapping
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 15 Aug 2017 21:17:14 +0000 (17:17 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 15 Aug 2017 22:04:26 +0000 (18:04 -0400)
commit83ef32056ebf24b82dd975acf9f0ef6da0d944c6
treec5ad82a822b028f892a9dbe974c2b6163f502e40
parent36ede12a97f2d606a433ea546d18e1944417efe3
Fix: handle unknown enum mapping

Found by Coverity:

At condition nr_mappings, the value of nr_mappings must be at least 1.
The condition !nr_mappings cannot be true.

CID 1376163 (#1 of 1): Logically dead code
(DEADCODE) dead_error_line: Execution cannot reach this statement:

if (pretty->use_colors) {

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
plugins/text/pretty/print.c
This page took 0.024911 seconds and 4 git commands to generate.