summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2004-03-05 17:08:28 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2004-03-05 17:08:28 +0000
commit4108f28975bfd407ff585ee2f4f285f2f7e85b81 (patch)
tree603f106cb7806655ee24b6b8184d3c676a650737
parenta9e9def7f4bfa07373a4d32243310ea0f9d03b88 (diff)
downloadnetsurf-4108f28975bfd407ff585ee2f4f285f2f7e85b81.tar.gz
netsurf-4108f28975bfd407ff585ee2f4f285f2f7e85b81.tar.bz2
[project @ 2004-03-05 17:08:28 by jmb]
Let's try again... svn path=/import/netsurf/; revision=586
-rw-r--r--riscos/gui.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/riscos/gui.c b/riscos/gui.c
index 8b220e31b..c65110663 100644
--- a/riscos/gui.c
+++ b/riscos/gui.c
@@ -837,17 +837,19 @@ void ro_msg_dataload(wimp_message *message)
while (i != 2) {
temp = fgets(url1, 256, fp);
if (!temp) {
- xfree(url1);
- return;
+ i = 2;
+ break;
}
temp = strip(url1);
url = xstrdup(temp);
- xfree(url1);
if (url[0] != '#') { /* not a comment */
i++;
}
}
+
+ xfree(url1);
+ if (!temp) return;
}
/* url file */