summaryrefslogtreecommitdiff
path: root/src/firstboot
diff options
context:
space:
mode:
Diffstat (limited to 'src/firstboot')
-rw-r--r--src/firstboot/firstboot.c5
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)) {