aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/toolbar.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/toolbar.c b/src/toolbar.c
index 1872a86eb..5929d718a 100755
--- a/src/toolbar.c
+++ b/src/toolbar.c
@@ -172,9 +172,14 @@ toolbar_get_action (EphyEditableToolbar *etoolbar,
gtk_widget_destroy (new_bookmark);
}
- g_return_val_if_fail (id != 0, NULL);
-
- action = get_bookmark_action (t, bookmarks, id);
+ if (id != 0)
+ {
+ action = get_bookmark_action (t, bookmarks, id);
+ }
+ else
+ {
+ action = NULL;
+ }
g_list_foreach (uris, (GFunc)g_free, NULL);
g_list_free (uris);