diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2004-03-05 17:08:28 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2004-03-05 17:08:28 +0000 |
commit | 4108f28975bfd407ff585ee2f4f285f2f7e85b81 (patch) | |
tree | 603f106cb7806655ee24b6b8184d3c676a650737 /riscos/gui.c | |
parent | a9e9def7f4bfa07373a4d32243310ea0f9d03b88 (diff) | |
download | netsurf-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
Diffstat (limited to 'riscos/gui.c')
-rw-r--r-- | riscos/gui.c | 8 |
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 */ |