diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-11-12 14:18:03 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-11-14 17:01:55 +0100 |
commit | 13df9c398d60e441a65b11ada491f750947649bf (patch) | |
tree | ad1aed8e02e8ee9ca9abc54bb6defe3863b47ebc /src/portable/portablectl.c | |
parent | localed: be more careful with the used types (diff) | |
download | systemd-13df9c398d60e441a65b11ada491f750947649bf.tar.xz systemd-13df9c398d60e441a65b11ada491f750947649bf.zip |
fileio: automatically add NULL sentinel to parse_env_file()
Let's modernize things a bit.
Diffstat (limited to 'src/portable/portablectl.c')
-rw-r--r-- | src/portable/portablectl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/portable/portablectl.c b/src/portable/portablectl.c index 1b77e4bcb0..1ce3f72ecb 100644 --- a/src/portable/portablectl.c +++ b/src/portable/portablectl.c @@ -281,8 +281,7 @@ static int inspect_image(int argc, char *argv[], void *userdata) { r = parse_env_file(f, "/etc/os-release", "PORTABLE_PRETTY_NAME", &pretty_portable, - "PRETTY_NAME", &pretty_os, - NULL); + "PRETTY_NAME", &pretty_os); if (r < 0) return log_error_errno(r, "Failed to parse /etc/os-release: %m"); |