diff options
Diffstat (limited to 'src/shared/machine-image.c')
-rw-r--r-- | src/shared/machine-image.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/shared/machine-image.c b/src/shared/machine-image.c index 55e5f08f91..ee086e35b4 100644 --- a/src/shared/machine-image.c +++ b/src/shared/machine-image.c @@ -146,10 +146,7 @@ static int image_new( if (!i->name) return -ENOMEM; - if (path) - i->path = strjoin(path, "/", filename); - else - i->path = strdup(filename); + i->path = path_join(path, filename); if (!i->path) return -ENOMEM; |