Remove NULL as last parameter to strjoin

This commit is contained in:
Daniel Lockyer
2017-11-24 10:37:08 +00:00
parent a7419dbc59
commit 4600a396d5
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -192,7 +192,7 @@ int pull_make_path(const char *url, const char *etag, const char *image_root, co
}
path = strjoin(image_root, "/", strempty(prefix), escaped_url, escaped_etag ? "." : "",
strempty(escaped_etag), strempty(suffix), NULL);
strempty(escaped_etag), strempty(suffix));
if (!path)
return -ENOMEM;
@@ -210,7 +210,7 @@ int pull_make_path(const char *url, const char *etag, const char *image_root, co
return r;
path = strjoin(image_root, "/", strempty(prefix), hash, escaped_etag ? "." : "",
strempty(escaped_etag), strempty(suffix), NULL);
strempty(escaped_etag), strempty(suffix));
if (!path)
return -ENOMEM;
}