X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fdata%2Fgis-http.c;fp=src%2Fdata%2Fgis-http.c;h=f4c4ec5b4046f891990a23d9c6c762842eb9ff42;hb=3e6721f082dd0b16dd5dd86c9eb6c2680731dbd0;hp=b610fa3e67c57d60a79372f71a3d75ac42cdfc2d;hpb=aa51def2e3da1a15677bc8a3a85098a7c9a57577;p=grits diff --git a/src/data/gis-http.c b/src/data/gis-http.c index b610fa3..f4c4ec5 100644 --- a/src/data/gis-http.c +++ b/src/data/gis-http.c @@ -226,6 +226,8 @@ GList *gis_http_available(GisHttp *http, g_snprintf(tmp, sizeof(tmp), ".index.%x", g_random_int()); gchar *path = gis_http_fetch(http, index, tmp, GIS_REFRESH, NULL, NULL); + if (!path) + return files; gchar *html; g_file_get_contents(path, &html, NULL, NULL);