[libgis] Fix gis_http_available bugs
- From: Andy Spencer <andys src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgis] Fix gis_http_available bugs
- Date: Fri, 10 Sep 2010 03:16:33 +0000 (UTC)
commit b9f5eb2820a7eddf625a17de87a48e70e0a4179f
Author: Andy Spencer <andy753421 gmail com>
Date: Mon Apr 26 04:49:44 2010 +0000
Fix gis_http_available bugs
- Used wrong RE
- Used wrong subexpression reference
src/data/gis-http.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/data/gis-http.c b/src/data/gis-http.c
index d017013..613dd43 100644
--- a/src/data/gis-http.c
+++ b/src/data/gis-http.c
@@ -233,9 +233,9 @@ GList *gis_http_available(GisHttp *http,
GRegex *extract_re = g_regex_new(
extract ?: "href=\"([^\"]*)\"", 0, 0, NULL);
GMatchInfo *info;
- g_regex_match(filter_re, html, 0, &info);
+ g_regex_match(extract_re, html, 0, &info);
while (g_match_info_matches(info)) {
- gchar *file = g_match_info_fetch(info, 0);
+ gchar *file = g_match_info_fetch(info, 1);
if (g_regex_match(filter_re, file, 0, NULL))
files = g_list_prepend(files, file);
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]