diff options
author | François Revel <mmu_man@netsurf-browser.org> | 2010-01-02 02:57:18 +0000 |
---|---|---|
committer | François Revel <mmu_man@netsurf-browser.org> | 2010-01-02 02:57:18 +0000 |
commit | 18e27fb499e0bcada28b76082e49c3b2eaab22eb (patch) | |
tree | 3b241c6daaf7d5c1425daa1c21896b167de8da28 /desktop/save_complete.c | |
parent | 3ea6fa1fd995371e8b160e00ea4859256edc9568 (diff) | |
download | netsurf-18e27fb499e0bcada28b76082e49c3b2eaab22eb.tar.gz netsurf-18e27fb499e0bcada28b76082e49c3b2eaab22eb.tar.bz2 |
C89.
svn path=/trunk/netsurf/; revision=9779
Diffstat (limited to 'desktop/save_complete.c')
-rw-r--r-- | desktop/save_complete.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/desktop/save_complete.c b/desktop/save_complete.c index 48438908d..d55cde08f 100644 --- a/desktop/save_complete.c +++ b/desktop/save_complete.c @@ -535,6 +535,7 @@ bool rewrite_urls(xmlNode *n, const char *base, xmlChar *content; for (child = n->children; child != 0; child = child->next) { + char *rewritten; /* Get current content */ content = xmlNodeGetContent(child); if (!content) @@ -544,7 +545,7 @@ bool rewrite_urls(xmlNode *n, const char *base, continue; /* Rewrite @import rules */ - char *rewritten = rewrite_stylesheet_urls( + rewritten = rewrite_stylesheet_urls( (const char *) content, strlen((const char *) content), (int *) &len, base, list); @@ -728,6 +729,7 @@ bool save_complete_inventory(const char *path, FILE *fp; char *pathstring, *standardpath = (path[0] == '/') ? (char *)(path + 1) : (char *)path; + struct save_complete_entry *entry; snprintf(urlpath, sizeof urlpath, "file:///%s/Inventory", standardpath); @@ -744,7 +746,6 @@ bool save_complete_inventory(const char *path, return false; } - struct save_complete_entry *entry; for (entry = list; entry; entry = entry->next) fprintf(fp, "%p %s\n", entry->content, entry->content->url); |