diff options
author | Don Scorgie <dscorgie@src.gnome.org> | 2006-05-11 18:20:33 +0000 |
---|---|---|
committer | Don Scorgie <dscorgie@src.gnome.org> | 2006-05-11 18:20:33 +0000 |
commit | 6674d23f74be570cfbf87fe6e87a60bb87cf6768 (patch) | |
tree | e843fef2ee2ac8945a9eaa7db90adf545c166ab1 | |
parent | 019d14e03fa9a809f4f72de8512d11b904c79c05 (diff) | |
download | yelp-6674d23f74be570cfbf87fe6e87a60bb87cf6768.tar.gz |
Actually check a directory exists before reading it (bug #339978)
* src/yelp-info-parser.c:
Actually check a directory exists before reading it (bug #339978)
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | src/yelp-info-parser.c | 2 |
2 files changed, 5 insertions, 0 deletions
@@ -1,5 +1,8 @@ 2006-05-11 Don Scorgie <dscorgie@cvs.gnome.org> + * src/yelp-info-parser.c: + Actually check a directory exists before reading it (bug #339978) + * stylesheets/search2html.xsl: * src/yelp-window.c: * src/yelp-search-pager.c: diff --git a/src/yelp-info-parser.c b/src/yelp-info-parser.c index feae831c..2f18b59a 100644 --- a/src/yelp-info-parser.c +++ b/src/yelp-info-parser.c @@ -136,6 +136,8 @@ find_info_part (gchar *part_name) for (i=0; paths[i]; i++) { dir = g_dir_open (paths[i], 0, NULL); + if (!dir) + continue; while ((filename = (gchar *) g_dir_read_name (dir))) { if (g_str_equal (filename, bzfname)) { |