summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/yelp-search-pager.c9
2 files changed, 14 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 55c973e3..3198a1c1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-10-25 Don Scorgie <dscorgie@cvs.gnome.org>
+
+ * src/yelp-search-pager.c:
+ Don't crash when searching for empty term. Bug #363949
+
2006-10-07 Elijah Newren <newren gmail com>
* src/yelp-print.c (yelp_print_present_status_dialog): Remove
diff --git a/src/yelp-search-pager.c b/src/yelp-search-pager.c
index 2d56fd0c..1c7e0dec 100644
--- a/src/yelp-search-pager.c
+++ b/src/yelp-search-pager.c
@@ -1449,6 +1449,15 @@ slow_search_setup (YelpSearchPager *pager)
else
lang = "C";
+ if (!strcmp (pager->priv->search_terms, "")) {
+ pager->priv->slow_search_setup_process_id = 0;
+ priv->xslt_process_id =
+ g_idle_add_full (G_PRIORITY_LOW,
+ (GSourceFunc) process_xslt,
+ pager, NULL);
+ return FALSE;
+ }
+
command = g_strconcat("scrollkeeper-get-content-list ", lang, NULL);
if (g_spawn_command_line_sync (command, &content_list, &stderr_str, NULL, NULL)) {