mirror of
https://github.com/ostreedev/ostree.git
synced 2024-12-22 17:35:55 +03:00
prune: [scan-build] Initialize a variable
Another false positive because we only read this if `opt_keep_younger_than` is `TRUE`, but let's initialize variables on general principle.
This commit is contained in:
parent
a8dc90b02f
commit
946659aacf
@ -205,7 +205,7 @@ ostree_builtin_prune (int argc, char **argv, OstreeCommandInvocation *invocation
|
||||
g_autoptr(GHashTable) all_refs = NULL;
|
||||
g_autoptr(GHashTable) reachable = ostree_repo_traverse_new_reachable ();
|
||||
g_autoptr(GHashTable) retain_branch_depth = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
|
||||
struct timespec keep_younger_than_ts;
|
||||
struct timespec keep_younger_than_ts = {0, };
|
||||
GHashTableIter hash_iter;
|
||||
gpointer key, value;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user