diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-09-03 17:01:09 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-09-03 17:01:09 +0200 |
commit | 28340719f27b805d5cb6dfbdf4284de8f6880ba7 (patch) | |
tree | 0310e3e0544a4ceea52916fb132266e791dd711f | |
parent | fuzz: add a test case for fuzz-bootspec (diff) | |
download | systemd-28340719f27b805d5cb6dfbdf4284de8f6880ba7.tar.xz systemd-28340719f27b805d5cb6dfbdf4284de8f6880ba7.zip |
bootspec: shorten code a bit
-rw-r--r-- | src/shared/bootspec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/shared/bootspec.c b/src/shared/bootspec.c index 8927f750fd..33f2ea6652 100644 --- a/src/shared/bootspec.c +++ b/src/shared/bootspec.c @@ -113,8 +113,7 @@ static int parse_path_one( if (r <= 0) return r; - free_and_replace(*s, c); - return 0; + return free_and_replace(*s, c); } static int parse_path_strv( |