Skip to content

Commit 4600a39

Browse files
author
Daniel Lockyer
committed
Remove NULL as last parameter to strjoin
1 parent a7419db commit 4600a39

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/coredump/coredump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,7 @@ static int gather_pid_metadata(
12151215
if (get_process_environ(pid, &t) >= 0)
12161216
set_iovec_field_free(iovec, n_iovec, "COREDUMP_ENVIRON=", t);
12171217

1218-
t = strjoin("COREDUMP_TIMESTAMP=", context[CONTEXT_TIMESTAMP], "000000", NULL);
1218+
t = strjoin("COREDUMP_TIMESTAMP=", context[CONTEXT_TIMESTAMP], "000000");
12191219
if (t)
12201220
iovec[(*n_iovec)++] = IOVEC_MAKE_STRING(t);
12211221

src/import/pull-common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ int pull_make_path(const char *url, const char *etag, const char *image_root, co
192192
}
193193

194194
path = strjoin(image_root, "/", strempty(prefix), escaped_url, escaped_etag ? "." : "",
195-
strempty(escaped_etag), strempty(suffix), NULL);
195+
strempty(escaped_etag), strempty(suffix));
196196
if (!path)
197197
return -ENOMEM;
198198

@@ -210,7 +210,7 @@ int pull_make_path(const char *url, const char *etag, const char *image_root, co
210210
return r;
211211

212212
path = strjoin(image_root, "/", strempty(prefix), hash, escaped_etag ? "." : "",
213-
strempty(escaped_etag), strempty(suffix), NULL);
213+
strempty(escaped_etag), strempty(suffix));
214214
if (!path)
215215
return -ENOMEM;
216216
}

0 commit comments

Comments
 (0)