mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 00:51:24 +03:00
Remove NULL as last parameter to strjoin
This commit is contained in:
parent
a7419dbc59
commit
4600a396d5
@ -1215,7 +1215,7 @@ static int gather_pid_metadata(
|
||||
if (get_process_environ(pid, &t) >= 0)
|
||||
set_iovec_field_free(iovec, n_iovec, "COREDUMP_ENVIRON=", t);
|
||||
|
||||
t = strjoin("COREDUMP_TIMESTAMP=", context[CONTEXT_TIMESTAMP], "000000", NULL);
|
||||
t = strjoin("COREDUMP_TIMESTAMP=", context[CONTEXT_TIMESTAMP], "000000");
|
||||
if (t)
|
||||
iovec[(*n_iovec)++] = IOVEC_MAKE_STRING(t);
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user