summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2015-11-20 19:02:17 +0100
committerCarlos Garnacho <carlosg@gnome.org>2015-11-23 17:58:34 +0100
commit61d6c1a523385cc1fe724cbe1cc8ad9545e6cc43 (patch)
treef8771cb52b91276d718733365735469f011b6307 /gtk
parentbb183ae591f99b04cfb88e238e4afaf539f34c28 (diff)
downloadgtk+-61d6c1a523385cc1fe724cbe1cc8ad9545e6cc43.tar.gz
searchenginetracker: ensure nie:url is bound
This could produce strange warnings as it is currently passed to tracker:uri-is-* sparql functions, as these expect no NULLs. https://bugzilla.gnome.org/show_bug.cgi?id=758407
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtksearchenginetracker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtksearchenginetracker.c b/gtk/gtksearchenginetracker.c
index f284a3ccd3..31da5089ce 100644
--- a/gtk/gtksearchenginetracker.c
+++ b/gtk/gtksearchenginetracker.c
@@ -354,7 +354,7 @@ gtk_search_engine_tracker_start (GtkSearchEngine *engine)
sparql_append_string_literal (sparql, search_text, TRUE);
#endif
- g_string_append (sparql, ". FILTER (");
+ g_string_append (sparql, ". FILTER (BOUND(nie:url(?urn)) && ");
g_string_append (sparql, "fn:contains(fn:lower-case(nfo:fileName(?urn)),");
sparql_append_string_literal_lower_case (sparql, search_text);