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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Noticed with gcc -Wuninitialized.

Signed-off-by: Jonathan Nieder <jrnieder@xxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]