]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/colors: assert rathen than overflow [-Wnull-dereference]
authorKarel Zak <kzak@redhat.com>
Mon, 13 Mar 2017 13:44:22 +0000 (14:44 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 13 Mar 2017 13:44:22 +0000 (14:44 +0100)
commitab7093775fc639d12c9f056a1cd3c935591db46f
tree180446e9cb9379d88a1f0622ef6d77953898cbf8
parentbd2aece45eea531c3317e57b1ba06b30c4304554
lib/colors: assert rathen than overflow [-Wnull-dereference]

lib/colors.c: In function 'colors_read_schemes':
lib/colors.c:412:7: warning: potential null pointer dereference [-Wnull-dereference]

Reported-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
lib/colors.c