Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-view.c
diff options
context:
space:
mode:
authorNickolay V. Shmyrev <nshmyrev@yandex.ru>2007-07-29 13:56:15 (GMT)
committer Nickolay V. Shmyrev <nshmyrev@src.gnome.org>2007-07-29 13:56:15 (GMT)
commit5f6b1add282b53fc4544d79e9a6fb635c6754058 (patch)
tree387a1c3bdd4613891c33df3d7ce8f7808d6c6399 /shell/ev-view.c
parent83944035486cffee2ce822c311d0b53036cf1ece (diff)
Check for NULL, fixes bug #460862.
2007-07-29 Nickolay V. Shmyrev <nshmyrev@yandex.ru> * shell/ev-view.c: (tip_from_link): Check for NULL, fixes bug #460862. svn path=/trunk/; revision=2590
Diffstat (limited to 'shell/ev-view.c')
-rw-r--r--shell/ev-view.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/shell/ev-view.c b/shell/ev-view.c
index c8b1783..c4ec8db 100644
--- a/shell/ev-view.c
+++ b/shell/ev-view.c
@@ -1454,8 +1454,10 @@ tip_from_link (EvView *view, EvLink *link)
case EV_LINK_ACTION_TYPE_GOTO_DEST:
page_label = ev_view_page_label_from_dest (view,
ev_link_action_get_dest (action));
- msg = g_strdup_printf (_("Go to page %s"), page_label);
- g_free (page_label);
+ if (page_label) {
+ msg = g_strdup_printf (_("Go to page %s"), page_label);
+ g_free (page_label);
+ }
break;
case EV_LINK_ACTION_TYPE_GOTO_REMOTE:
if (title) {
@@ -1465,7 +1467,6 @@ tip_from_link (EvView *view, EvLink *link)
msg = g_strdup_printf (_("Go to file ā€œ%sā€"),
ev_link_action_get_filename (action));
}
-
break;
case EV_LINK_ACTION_TYPE_EXTERNAL_URI:
msg = g_strdup (ev_link_action_get_uri (action));