diff options
author | Matthias Clasen <mclasen@redhat.com> | 2006-04-11 16:26:26 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-04-11 16:26:26 +0000 |
commit | 371ce39cfcd21d98cd53dbe50922bd3595986cf9 (patch) | |
tree | ce468dfb3feda34964c154b284648c246daf7c14 /gtk | |
parent | 383f83c102282e8421ce7632dd17575950d9b6d5 (diff) | |
download | gtk+-371ce39cfcd21d98cd53dbe50922bd3595986cf9.tar.gz |
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)
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkinputdialog.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkinputdialog.c b/gtk/gtkinputdialog.c index 397b700356..9f7b03f5bb 100644 --- a/gtk/gtkinputdialog.c +++ b/gtk/gtkinputdialog.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) { |