diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2003-08-24 22:49:48 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2003-08-24 22:49:48 +0800 |
commit | c16cb1a1708cf26daaf9c5cdcefb1934a0e4e2be (patch) | |
tree | 465cc52b2978ff493a2d5a2b41910838706862eb /lib/widgets | |
parent | bc36afd042c949d85f3e8aaa12566950aa57ebe8 (diff) | |
download | gsoc2013-epiphany-c16cb1a1708cf26daaf9c5cdcefb1934a0e4e2be.tar gsoc2013-epiphany-c16cb1a1708cf26daaf9c5cdcefb1934a0e4e2be.tar.gz gsoc2013-epiphany-c16cb1a1708cf26daaf9c5cdcefb1934a0e4e2be.tar.bz2 gsoc2013-epiphany-c16cb1a1708cf26daaf9c5cdcefb1934a0e4e2be.tar.lz gsoc2013-epiphany-c16cb1a1708cf26daaf9c5cdcefb1934a0e4e2be.tar.xz gsoc2013-epiphany-c16cb1a1708cf26daaf9c5cdcefb1934a0e4e2be.tar.zst gsoc2013-epiphany-c16cb1a1708cf26daaf9c5cdcefb1934a0e4e2be.zip |
Convert erroneous g_return_if_fail into a simple conditional return.
2003-08-24 Christian Persch <chpe@cvs.gnome.org>
* lib/widgets/ephy-node-view.c: (ephy_node_view_remove):
Convert erroneous g_return_if_fail into a simple conditional return.
Diffstat (limited to 'lib/widgets')
-rw-r--r-- | lib/widgets/ephy-node-view.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/widgets/ephy-node-view.c b/lib/widgets/ephy-node-view.c index 5bd528fcc..8b1f09e0c 100644 --- a/lib/widgets/ephy-node-view.c +++ b/lib/widgets/ephy-node-view.c @@ -1370,7 +1370,8 @@ ephy_node_view_remove (EphyNodeView *view) */ list = ephy_node_view_get_selection (view); - g_return_if_fail (list != NULL); + if (list == NULL) return; + node = g_list_first (list)->data; ephy_tree_model_node_iter_from_node (EPHY_TREE_MODEL_NODE (view->priv->nodemodel), node, &iter); |