]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/test/test-ellipsize.c
tree-wide: Fix -Wmaybe-uninitialized compilation warnings
[thirdparty/systemd.git] / src / test / test-ellipsize.c
index 40edc289e9d186dbf6a5b50411d33be74e0ff804..c272c561d2909707596c17aa1051165e22e0a2a2 100644 (file)
@@ -137,7 +137,7 @@ TEST(ellipsize_ansi) {
 }
 
 TEST(ellipsize_ansi_cats) {
-        _cleanup_free_ char *e, *f, *g, *h;
+        _cleanup_free_ char *e = NULL, *f = NULL, *g = NULL, *h = NULL;
 
         /* Make sure we don't cut off in the middle of an ANSI escape sequence. */