summaryrefslogtreecommitdiff
path: root/riscos
diff options
context:
space:
mode:
Diffstat (limited to 'riscos')
-rw-r--r--riscos/gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/riscos/gui.c b/riscos/gui.c
index f3d1f323a..691264d89 100644
--- a/riscos/gui.c
+++ b/riscos/gui.c
@@ -927,8 +927,8 @@ static void gui_init2(int argc, char** argv)
/* URL files */
else if (strcasecmp(argv[1], "-urlf") == 0) {
char *urlf = ro_gui_url_file_parse(argv[2]);
- if (!url) {
- LOG(("malloc failed"));
+ if (!urlf) {
+ LOG(("allocation failed"));
die("Insufficient memory for URL");
}
ret = nsurl_create(urlf, &url);