efi: Skip parsing SystemdOptions if there's an error getting it.
authorFilipe Brandenburger <filbranden@gmail.com>
Thu, 11 Jun 2020 22:33:32 +0000 (15:33 -0700)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 27 Jul 2020 08:26:33 +0000 (10:26 +0200)
commitb3658ee203e3a9c292fe163aadc398aad4a98316
tree93c9a4440af88849cecebd4209288310764b809c
parent4776f26597df20dfb3e7e758ffc617b86eeca669
efi: Skip parsing SystemdOptions if there's an error getting it.

The original logic was logging an "ignored" debug message, but it was still
going ahead and calling proc_cmdline_parse_given() on the NULL line. Fix that
to skip that explicitly when the EFI variable wasn't really read.

(cherry picked from commit 7283fbfd0c46819fea9f0a20671eaef99b3993e5)
src/basic/proc-cmdline.c