diff options
author | Shaun McCance <shaunm@gnome.org> | 2010-05-10 10:48:29 -0500 |
---|---|---|
committer | Shaun McCance <shaunm@gnome.org> | 2010-05-10 14:00:32 -0500 |
commit | 12847b689b9d4e436940b213ca35c3b87401b545 (patch) | |
tree | 3bf226b6a140b3036847b76c292ae892753da8ae /tests | |
parent | 66ffe63eec59f0e5235b04625fd61e75bfb60587 (diff) | |
download | yelp-12847b689b9d4e436940b213ca35c3b87401b545.tar.gz |
[libyelp] Make relative links work for HTML documents
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-uri.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-uri.c b/tests/test-uri.c index 869d9b1c..d2889999 100644 --- a/tests/test-uri.c +++ b/tests/test-uri.c @@ -35,7 +35,7 @@ static void print_uri (gchar *orig, YelpUri *uri, GOutputStream *stream) { GFile *file; - gchar *type, *tmp, **tmpv, *out; + gchar *type = NULL, *tmp, **tmpv, *out; g_output_stream_write (stream, orig, strlen (orig), NULL, NULL); g_output_stream_write (stream, "\n", 1, NULL, NULL); @@ -199,7 +199,7 @@ run_all_tests (int argc, char **argv) G_FILE_ATTRIBUTE_STANDARD_NAME); if (!g_str_has_suffix (name, ".test")) continue; - list = g_list_insert_sorted (list, name, strcmp); + list = g_list_insert_sorted (list, (gchar *) name, (GCompareFunc) strcmp); } while (list) { |