From 4ea90d2dcabdb6949dca1d8f8700004df1478599 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 30 May 2014 22:16:15 +0100 Subject: [PATCH] Check correct variable for NULL. --- riscos/gui.c | 4 ++-- 1 file 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);