From 5a96d39542d356fc3d102d52390a55d8cb6758d3 Mon Sep 17 00:00:00 2001 From: gramanas Date: Tue, 13 Nov 2018 15:12:31 +0200 Subject: Leave no string uninitialized. --- unit/ck-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unit') diff --git a/unit/ck-test.c b/unit/ck-test.c index 36b23d8..d7cf203 100644 --- a/unit/ck-test.c +++ b/unit/ck-test.c @@ -34,7 +34,7 @@ void ck_list_test() { void ck_str_utils_test() { /* make_ck_config_name */ - char ck_conf_path[STR_M]; + char ck_conf_path[STR_M] = ""; str_make_ck_config_name(ck_conf_path, "/test/path/.config", "emacs"); assert(strcmp(ck_conf_path, "emacs/.config") == 0); -- cgit v1.2.3