diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-05-10 00:34:46 +0900 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2018-08-24 16:47:08 +0200 |
commit | 4f05c22da5971ae52d8987d77746442f81ece573 (patch) | |
tree | d120afbcc91a098918e8e87e444f165f85d079ca /src/libelogind | |
parent | f6a5409519c0cc2255e581cfbe71faefe493b743 (diff) |
tree-wide: use strv_free_and_replace() macro
Diffstat (limited to 'src/libelogind')
-rw-r--r-- | src/libelogind/sd-bus/sd-bus.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libelogind/sd-bus/sd-bus.c b/src/libelogind/sd-bus/sd-bus.c index 218933196..22a7c99ea 100644 --- a/src/libelogind/sd-bus/sd-bus.c +++ b/src/libelogind/sd-bus/sd-bus.c @@ -313,10 +313,7 @@ _public_ int sd_bus_set_exec(sd_bus *bus, const char *path, char *const argv[]) return -ENOMEM; free_and_replace(bus->exec_path, p); - - strv_free(bus->exec_argv); - bus->exec_argv = a; - + strv_free_and_replace(bus->exec_argv, a); return 0; } |