Fix compilation warning:
authordarkjames <darkjames@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 25 Apr 2011 19:57:45 +0000 (19:57 +0000)
committerdarkjames <darkjames@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 25 Apr 2011 19:57:45 +0000 (19:57 +0000)
packet_win.c:230: warning: 'u_val' may be used uninitialized in this function

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36852 f5534014-38df-0310-8fa8-9805f1628bb7

gtk/packet_win.c

index 2bf8b5b5922b4c16bc41ac698ba27ed5f87d2317..0631f11c1a0a9d0a926e27f3b4d11e65359a054f 100644 (file)
@@ -234,6 +234,10 @@ finfo_integer_changed(GtkSpinButton *spinbutton, gpointer user_data)
 
                else if (finfo_type == FT_UINT8 || finfo_type == FT_UINT16 || finfo_type == FT_UINT24 || finfo_type == FT_UINT32 || finfo_type == FT_UINT64)
                        u_val = (guint64) val;
+               else {
+                       g_assert_not_reached();
+                       return;
+               }
 
                if (FI_GET_FLAG(finfo, FI_LITTLE_ENDIAN)) {
                        while (finfo_length) {