OSDN Git Service

efi_loadopt_args_from_file(): make sure buf is only NULL if size is.
authorPeter Jones <pjones@redhat.com>
Mon, 1 May 2017 19:19:18 +0000 (15:19 -0400)
committerPeter Jones <pjones@redhat.com>
Mon, 1 May 2017 20:06:31 +0000 (16:06 -0400)
commitd251242a71ef01626444180c630330bcfb0ca69e
treeebdddea64553a0d9e383390c4c6b43ae5e3fcb07
parent878c81f02e9cabbc990028b2cf87442813eb39f5
efi_loadopt_args_from_file(): make sure buf is only NULL if size is.

This avoids passing NULL to fread().

Found by covscan.

Signed-off-by: Peter Jones <pjones@redhat.com>
src/loadopt.c