summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--riscos/gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/riscos/gui.c b/riscos/gui.c
index 8987210a2..774980966 100644
--- a/riscos/gui.c
+++ b/riscos/gui.c
@@ -2457,7 +2457,7 @@ char *filename_from_path(char *path)
leafname = malloc(leaflen + 1);
if (!leafname) {
LOG(("malloc failed"));
- continue;
+ return NULL;
}
memcpy(leafname, temp, leaflen + 1);