18 lines
749 B
Diff
18 lines
749 B
Diff
diff -up yelp-2.20.0/src/yelp-search-parser.c.search-crash yelp-2.20.0/src/yelp-search-parser.c
|
|
--- yelp-2.20.0/src/yelp-search-parser.c.search-crash 2007-09-17 16:49:09.000000000 -0400
|
|
+++ yelp-2.20.0/src/yelp-search-parser.c 2007-11-05 18:13:09.000000000 -0500
|
|
@@ -1074,8 +1074,11 @@ slow_search_process (RrnReg *reg, Search
|
|
|
|
ptr = g_strrstr (container->base_filename, "/");
|
|
|
|
- path = g_strndup (container->base_filename,
|
|
- ptr - container->base_filename);
|
|
+ if (ptr)
|
|
+ path = g_strndup (container->base_filename,
|
|
+ ptr - container->base_filename);
|
|
+ else
|
|
+ path = g_strdup (container->base_filename);
|
|
|
|
/* BEGIN HTML special block */
|
|
if (reg->type && (g_str_equal (reg->type, "text/html") ||
|