[gitg] Fixed switch/case to not fall through when removing stash



commit 002155f05b04f4d2e835eea7ea00015e6534c6ef
Author: Jesse van den Kieboom <jessevdk gnome org>
Date:   Sun Jul 5 19:15:26 2009 +0200

    Fixed switch/case to not fall through when removing stash

 gitg/gitg-branch-actions.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gitg/gitg-branch-actions.c b/gitg/gitg-branch-actions.c
index 28636c1..f0d3754 100644
--- a/gitg/gitg-branch-actions.c
+++ b/gitg/gitg-branch-actions.c
@@ -509,10 +509,12 @@ gitg_branch_actions_remove (GitgWindow *window,
 		break;
 		case GITG_REF_TYPE_STASH:
 			ret = remove_stash (window, cp);
-		default:
+		break;
 		case GITG_REF_TYPE_TAG:
 			ret = remove_tag (window, cp);
 		break;
+		default:
+		break;
 	}
 	
 	gitg_ref_free (cp);
@@ -926,6 +928,7 @@ gitg_branch_actions_checkout (GitgWindow *window,
 		break;
 		case GITG_REF_TYPE_TAG:
 			ret = checkout_tag (window, cp);
+		break;
 		default:
 		break;
 	}



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