Commit 371ce39c authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen
Browse files

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)
parent 383f83c1
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:
......
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)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment