[PATCH 5/6] wt-status: protect against invalid change_type
Noticed with gcc -Wuninitialized.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
---
wt-status.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/wt-status.c b/wt-status.c
index 3298897..25a411b 100644
--- a/wt-status.c
+++ b/wt-status.c
@@ -181,6 +181,8 @@ static void wt_status_print_change_data(struct wt_status *s,
}
status = d->worktree_status;
break;
+ default:
+ die("BUG: invalid change_type");
}
one = quote_path(one_name, -1, &onebuf, s->prefix);
--
1.7.4.1