From 4c65275e9c164b556e5fb588c2e4c627b66a5a91 Mon Sep 17 00:00:00 2001 From: Derrick Stolee Date: Mon, 21 Jun 2021 08:47:42 -0400 Subject: [PATCH] fixup! wt-status: expand added sparse directory entries Signed-off-by: Derrick Stolee --- wt-status.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;