repo: Avoid a compiler warning

Initialize mode_string. Its the right thing to do.

Closes: #2192
Approved by: alexlarsson
This commit is contained in:
Matthias Clasen
2018-10-05 15:40:51 -04:00
committed by Atomic Bot
parent dd546ad365
commit 189d22c0db

View File

@@ -76,7 +76,7 @@ print_info (OstreeRepo *repo,
const char *deploy_collection_id;
g_autoptr(GVariant) gpg_keys = NULL;
OstreeRepoMode mode;
const char *mode_string;
const char *mode_string = "unknown";
mode = ostree_repo_get_mode (repo);
ostree_repo_mode_to_string (mode, &mode_string, NULL);