[evolution] EWebView - Check if the link has fragment



commit 3928bfba24cc340d2445f2412a0b5646c52755e8
Author: Tomas Popela <tpopela redhat com>
Date:   Fri Jun 13 14:27:38 2014 +0200

    EWebView - Check if the link has fragment
    
    Some links doesn't have the framegment so check for it before accessing it.

 e-util/e-web-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-web-view.c b/e-util/e-web-view.c
index 0b83d81..5c6a8fb 100644
--- a/e-util/e-web-view.c
+++ b/e-util/e-web-view.c
@@ -1049,7 +1049,7 @@ web_view_hovering_over_link (EWebView *web_view,
                        goto exit;
 
                fragment = soup_uri_get_fragment (soup_uri);
-               if (*fragment)
+               if (fragment && *fragment)
                        message = g_strdup_printf (_("Go to the section %s of the message"), fragment);
                else
                        message = g_strdup (_("Go to the beginning of the message"));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]