]> granicus.if.org Git - sysstat/commit
sadf: Fix seg fault on empty data files
authorSebastien GODARD <sysstat@users.noreply.github.com>
Sat, 13 Apr 2019 16:44:29 +0000 (18:44 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Sat, 13 Apr 2019 16:44:29 +0000 (18:44 +0200)
commit7478d4d83c3d78335f73bd78794d550de95b097d
treec99a3038c5b3da2e16ffca0af2b8a3ce8d8946aa
parent4eae333755209daf80065f92eea15490f4361377
sadf: Fix seg fault on empty data files

Trying to display XML or JSON data (with sadf -x/-j) from a data file
containing only RESTART records created a core dump.
This patch fixes that.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
sadf.c