summaryrefslogtreecommitdiffstats
path: root/Documentation/boilerplate.c
diff options
context:
space:
mode:
authorSami Kerola2017-03-05 21:52:28 +0100
committerKarel Zak2017-03-13 14:48:14 +0100
commitfdf8e1f595b45337b7d12ab6ac9faf6040fe913c (patch)
treee9e4bc63a5e91a09c76c8fa1718fea9aaaf5e509 /Documentation/boilerplate.c
parentlibblkid: ensure uninitialized variable is not used [clang] (diff)
downloadkernel-qcow2-util-linux-fdf8e1f595b45337b7d12ab6ac9faf6040fe913c.tar.gz
kernel-qcow2-util-linux-fdf8e1f595b45337b7d12ab6ac9faf6040fe913c.tar.xz
kernel-qcow2-util-linux-fdf8e1f595b45337b7d12ab6ac9faf6040fe913c.zip
include: fix compiler warning
./include/optutils.h:12:18: warning: null pointer dereference [-Wnull-dereference] for (o = opts; o->name; o++) ~^~~~~~ In file included from libfdisk/src/dos.c:12:0: ./include/pt-mbr.h:25:47: warning: potential null pointer dereference [-Wnull-dereference] return p[0] | (p[1] << 8) | (p[2] << 16) | (p[3] << 24); ~^~~ Well these should be impossible, so add assert() to catch possible bugs. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'Documentation/boilerplate.c')
0 files changed, 0 insertions, 0 deletions