[yelp] [yelp-utils.c] Ensure Mallard URIs have trailing / so base_uri works



commit db219e61abb3fc7b55c3aefd5f1402d4984769e8
Author: Shaun McCance <shaunm gnome org>
Date:   Sun Aug 9 19:06:13 2009 -0500

    [yelp-utils.c] Ensure Mallard URIs have trailing / so base_uri works

 src/yelp-utils.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/yelp-utils.c b/src/yelp-utils.c
index 4330360..09a3724 100644
--- a/src/yelp-utils.c
+++ b/src/yelp-utils.c
@@ -116,15 +116,15 @@ resolve_process_ghelp (char *uri, gchar **result)
             hash = NULL;
         }
         for (i = 0; type != YELP_RRN_TYPE_MAL && dirs[i]; i++) {
-            gchar *path = g_strdup_printf ("%s/gnome/help/%s", dirs[i], dir);
+            gchar *path = g_strdup_printf ("%sgnome/help/%s", dirs[i], dir);
             if (g_file_test (path, G_FILE_TEST_IS_DIR)) {
                 const gchar * const *langs = g_get_language_names ();
                 gint j;
                 for (j = 0; type != YELP_RRN_TYPE_MAL && langs[j]; j++) {
-                    gchar *index = g_strdup_printf ("%s/gnome/help/%s/%s/index.page", dirs[i], dir, langs[j]);
+                    gchar *index = g_strdup_printf ("%sgnome/help/%s/%s/index.page", dirs[i], dir, langs[j]);
                     if (g_file_test (index, G_FILE_TEST_IS_REGULAR)) {
                         type = YELP_RRN_TYPE_MAL;
-                        *result = g_strdup_printf ("%s/gnome/help/%s/%s", dirs[i], dir, langs[j]);
+                        *result = g_strdup_printf ("%sgnome/help/%s/%s/", dirs[i], dir, langs[j]);
                     }
                     g_free (index);
                 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]