util-linux/text-utils
Sami Kerola 577bb86f5b
hexdump: fix potential null pointer dereference warnings
First three fixes on lines 133, 151, and 280 are cosmetic.  Because there
was unobvious null check compiler thought variable might be null, and warned
when after pointer adjustment it was followed without null check.  Perhaps
this will not happen sometime in future when compiler is made more smart,
meanwhile lets give better hints to avoid false positive.

The last change addresses issue that is possible, at least in theory.

text-utils/hexdump-parse.c:465:12: warning: potential null pointer
dereference [-Wnull-dereference]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2018-12-10 21:48:00 +00:00
..
Makemodule.am build-sys: remove column-old.c 2017-05-03 10:40:46 +02:00
col.1 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
col.c misc: consolidate macro style USAGE_HELP_OPTIONS 2017-06-29 16:54:33 +02:00
colcrt.1 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
colcrt.c misc: consolidate macro style USAGE_HELP_OPTIONS 2017-06-29 16:54:33 +02:00
colrm.1 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
colrm.c misc: consolidate macro style USAGE_HELP_OPTIONS 2017-06-29 16:54:33 +02:00
column.1 column: add --table-empty-lines 2018-08-23 13:34:43 +02:00
column.c column: add --table-empty-lines 2018-08-23 13:34:43 +02:00
hexdump-conv.c hexdump: Rename struct _pr to struct hexdump_pr and remove it's typedef 2013-12-02 13:44:21 +01:00
hexdump-display.c misc: stop mixing declarations and code 2017-03-13 14:48:04 +01:00
hexdump-parse.c hexdump: fix potential null pointer dereference warnings 2018-12-10 21:48:00 +00:00
hexdump.1 man pages: Remove "left" (or change to "l") in the column formats of tables 2018-08-06 08:58:57 +02:00
hexdump.c misc: consolidate macro style USAGE_HELP_OPTIONS 2017-06-29 16:54:33 +02:00
hexdump.h misc: cosmetics, remove argument from usage(FILE*) 2017-06-26 14:38:24 +02:00
line.1 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
line.c misc: consolidate macro style USAGE_HELP_OPTIONS 2017-06-29 16:54:33 +02:00
more.1 more: add --help and --version 2017-06-22 21:35:01 +02:00
more.c more: rename functions 2018-09-02 18:30:12 +01:00
pg.1 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
pg.c text-utils: use errexec() 2018-02-01 15:40:43 +01:00
rev.1 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
rev.c rev: move a global variable to local scope 2018-05-28 13:36:38 +02:00
ul.1 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
ul.c misc: consolidate macro style USAGE_HELP_OPTIONS 2017-06-29 16:54:33 +02:00