forked from AuroraMiddleware/gtk
Don't dereference info before checking it for NULL. (Coverity)
2006-04-11 Matthias Clasen <mclasen@redhat.com> * gtk/gtkinputdialog.c (gtk_input_dialog_set_mapping_mode): Don't dereference info before checking it for NULL. (Coverity)
This commit is contained in:
parent
383f83c102
commit
371ce39cfc
@ -1,3 +1,8 @@
|
||||
2006-04-11 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkinputdialog.c (gtk_input_dialog_set_mapping_mode): Don't
|
||||
dereference info before checking it for NULL. (Coverity)
|
||||
|
||||
2006-04-11 Anders Carlsson <andersca@mac.imendio.com>
|
||||
|
||||
* gdk/quartz/GdkQuartzView.c:
|
||||
|
@ -1,3 +1,8 @@
|
||||
2006-04-11 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkinputdialog.c (gtk_input_dialog_set_mapping_mode): Don't
|
||||
dereference info before checking it for NULL. (Coverity)
|
||||
|
||||
2006-04-11 Anders Carlsson <andersca@mac.imendio.com>
|
||||
|
||||
* gdk/quartz/GdkQuartzView.c:
|
||||
|
@ -454,11 +454,13 @@ gtk_input_dialog_set_mapping_mode (GtkWidget *w,
|
||||
{
|
||||
GtkInputDialog *inputd = input_dialog_from_widget (w);
|
||||
GdkDevice *info = inputd->current_device;
|
||||
GdkInputMode old_mode = info->mode;
|
||||
GdkInputMode old_mode;
|
||||
GdkInputMode mode = GPOINTER_TO_INT (data);
|
||||
|
||||
if (!info)
|
||||
return;
|
||||
|
||||
old_mode = info->mode;
|
||||
|
||||
if (mode != old_mode)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user