Subject: [PATCH 5/6] wt-status: protect against invalid change_type

From: Jonathan Nieder <[email-masked]>
Date: Wed, 16 Mar 2011 06:37:50 -0500

Noticed with gcc -Wuninitialized.

Signed-off-by: Jonathan Nieder <[email-masked]>
---
 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