From 8693064200ad015a6b6d07f99a3170fa89012a71 Mon Sep 17 00:00:00 2001 From: gramanas Date: Thu, 20 Sep 2018 20:13:34 +0300 Subject: Fix tree bug --- src/dblayer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dblayer.c') diff --git a/src/dblayer.c b/src/dblayer.c index f97b70c..190cb05 100644 --- a/src/dblayer.c +++ b/src/dblayer.c @@ -465,7 +465,7 @@ int list_get_path_program_tree(DB *db, cklist *ckl) { } while (sqlite3_step(stmt) == SQLITE_ROW) { - char programName[STR_M]; + char programName[STR_M] = ""; strcat(programName, (char *)sqlite3_column_text(stmt, 0)); strcat(programName, ":"); list_add(ckl, programName); -- cgit v1.2.3