[gnome-control-center] user-accounts: Avoid warning about uninitialised variable



commit 8d2f8ac3ce7fad80e7b2aa3c2470476577a458f2
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Feb 1 01:08:55 2011 +0000

    user-accounts: Avoid warning about uninitialised variable
    
    cursor_type could be used uninitialised (probably not, but gcc
    complains).

 panels/user-accounts/um-crop-area.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/panels/user-accounts/um-crop-area.c b/panels/user-accounts/um-crop-area.c
index c5b7da2..575cdf5 100644
--- a/panels/user-accounts/um-crop-area.c
+++ b/panels/user-accounts/um-crop-area.c
@@ -347,6 +347,8 @@ update_cursor (UmCropArea *area,
         case BOTTOM_RIGHT:
                 cursor_type = GDK_BOTTOM_RIGHT_CORNER;
                 break;
+	default:
+		g_assert_not_reached ();
         }
 
         if (cursor_type != area->priv->current_cursor) {



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