]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Remove NULL as last parameter to strjoin 7454/head
authorDaniel Lockyer <thisisdaniellockyer@gmail.com>
Fri, 24 Nov 2017 10:37:08 +0000 (10:37 +0000)
committerDaniel Lockyer <thisisdaniellockyer@gmail.com>
Fri, 24 Nov 2017 10:37:08 +0000 (10:37 +0000)
src/coredump/coredump.c
src/import/pull-common.c

index 5673aa0f7850b756b558aa23e27a3c4b7581ff7f..d3533790a10828ad54355f5c8bfd966ae27ddf3c 100644 (file)
@@ -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);
 
index cb2e3d9be29a9f9239f921d3f845e18e1b421df4..c2a3a6aa8b177c9f6c69e87d9793c707633785ea 100644 (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;
         }