diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-08-01 01:55:31 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-08-01 01:55:31 +0200 |
commit | 70132bd0425ce0a65ed24197a2bcbf1cb2931352 (patch) | |
tree | dedff73a402ae075c71499d23e16b323db539b9f /src/service.c | |
parent | 911a4828e054a531be961cea34de89b666bda710 (diff) |
util: various optimizations, using join()
Diffstat (limited to 'src/service.c')
-rw-r--r-- | src/service.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/service.c b/src/service.c index 340eb1baa4..5c17413a59 100644 --- a/src/service.c +++ b/src/service.c @@ -2988,7 +2988,8 @@ static int service_enumerate(Manager *m) { free(path); path = NULL; - if (asprintf(&path, "%s/%s", *p, rcnd_table[i].path) < 0) { + path = join(*p, "/", rcnd_table[i].path, NULL); + if (!path) { r = -ENOMEM; goto finish; } |