Commit 46bd8fd8 authored by Roman Zippel's avatar Roman Zippel Committed by Linus Torvalds

[PATCH] fix gconf segfault problem

fix gconf segfault problem (by Romain Lievin <roms@tilp.info>)
parent 839e4302
/* Hey EMACS -*- linux-c -*- */ /* Hey EMACS -*- linux-c -*- */
/* /*
* *
* Copyright (C) 2002-2003 Romain Lievin <roms@lpg.ticalc.org> * Copyright (C) 2002-2003 Romain Lievin <roms@tilp.info>
* Released under the terms of the GNU GPL v2.0. * Released under the terms of the GNU GPL v2.0.
* *
*/ */
...@@ -1046,7 +1046,8 @@ on_treeview2_button_press_event(GtkWidget * widget, ...@@ -1046,7 +1046,8 @@ on_treeview2_button_press_event(GtkWidget * widget,
if (path == NULL) if (path == NULL)
return FALSE; return FALSE;
gtk_tree_model_get_iter(model2, &iter, path); if (!gtk_tree_model_get_iter(model2, &iter, path))
return FALSE;
gtk_tree_model_get(model2, &iter, COL_MENU, &menu, -1); gtk_tree_model_get(model2, &iter, COL_MENU, &menu, -1);
col = column2index(column); col = column2index(column);
......
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