yelp r3182 - in trunk: . src
- From: dscorgie svn gnome org
- To: svn-commits-list gnome org
- Subject: yelp r3182 - in trunk: . src
- Date: Mon, 1 Sep 2008 18:03:15 +0000 (UTC)
Author: dscorgie
Date: Mon Sep 1 18:03:14 2008
New Revision: 3182
URL: http://svn.gnome.org/viewvc/yelp?rev=3182&view=rev
Log:
* src/yelp-utils.c (resolve_is_man_path):
Don't crash when trying to load text files
bug #549986 - Josselin Mouette
Modified:
trunk/ChangeLog
trunk/src/yelp-utils.c
Modified: trunk/src/yelp-utils.c
==============================================================================
--- trunk/src/yelp-utils.c (original)
+++ trunk/src/yelp-utils.c Mon Sep 1 18:03:14 2008
@@ -136,7 +136,7 @@
iter = cats;
if (encoding && *encoding) {
- while (iter) {
+ while (iter && *iter) {
gchar *ending = g_strdup_printf ("%s.%s", *iter, encoding);
if (g_str_has_suffix (path, ending)) {
g_free (ending);
@@ -146,7 +146,7 @@
iter++;
}
} else {
- while (iter) {
+ while (iter && *iter) {
if (g_str_has_suffix (path, *iter)) {
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]