diff --git a/wt-status.c b/wt-status.c index 6e3d1e956dc5f0..53c8f175853c83 100644 --- a/wt-status.c +++ b/wt-status.c @@ -709,10 +709,9 @@ static void wt_status_collect_changes_initial(struct wt_status *s) * tree and marking them with DIFF_STATUS_ADDED. */ struct strbuf base = STRBUF_INIT; - struct pathspec ps; + struct pathspec ps = { 0 }; struct tree *tree = lookup_tree(istate->repo, &ce->oid); - memset(&ps, 0, sizeof(ps)); ps.recursive = 1; ps.has_wildcard = 1; ps.max_depth = -1;