diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-01-22 16:46:18 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-02-09 13:49:27 +0900 |
commit | e8acf0918654082bf24de9e73bf11577d2899c36 (patch) | |
tree | 0d1a5e56ca2f8d415a8655213d29c29ce619b78b | |
parent | ba12e41d059349039993fd240046c858cae4256b (diff) | |
download | systemd-e8acf0918654082bf24de9e73bf11577d2899c36.tar.gz |
hostname: use free_and_strdup_and_warn()
-rw-r--r-- | src/hostname/hostnamed.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hostname/hostnamed.c b/src/hostname/hostnamed.c index 73949fbfb8..840e657141 100644 --- a/src/hostname/hostnamed.c +++ b/src/hostname/hostnamed.c @@ -790,7 +790,7 @@ static int method_set_static_hostname(sd_bus_message *m, void *userdata, sd_bus_ if (r == 0) return 1; /* No authorization for now, but the async polkit stuff will call us again when it has it */ - r = free_and_strdup(&c->data[PROP_STATIC_HOSTNAME], name); + r = free_and_strdup_warn(&c->data[PROP_STATIC_HOSTNAME], name); if (r < 0) return r; @@ -870,7 +870,7 @@ static int set_machine_info(Context *c, sd_bus_message *m, int prop, sd_bus_mess if (r == 0) return 1; /* No authorization for now, but the async polkit stuff will call us again when it has it */ - r = free_and_strdup(&c->data[prop], name); + r = free_and_strdup_warn(&c->data[prop], name); if (r < 0) return r; |