diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-02-11 05:48:10 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-02-12 03:05:08 +0900 |
commit | b3f9c17a6b361bf98e79a0228cdcb09afc40d1cc (patch) | |
tree | 1c607970840370d1588f41eb5e6387a240e08661 /src/firstboot | |
parent | 7fb1d980aff8b035d96a34bd30efff261f3a5494 (diff) | |
download | systemd-b3f9c17a6b361bf98e79a0228cdcb09afc40d1cc.tar.gz |
tree-wide: use free_and_strdup_warn()
Diffstat (limited to 'src/firstboot')
-rw-r--r-- | src/firstboot/firstboot.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/firstboot/firstboot.c b/src/firstboot/firstboot.c index a9cc03cc3f..522d0ff1f0 100644 --- a/src/firstboot/firstboot.c +++ b/src/firstboot/firstboot.c @@ -210,10 +210,7 @@ static int prompt_loop(const char *text, char **l, unsigned percentage, bool (*i } log_info("Selected '%s'.", l[u-1]); - if (free_and_strdup(ret, l[u-1]) < 0) - return log_oom(); - - return 0; + return free_and_strdup_warn(ret, l[u-1]); } if (!is_valid(p)) { |