From 65b3dd18e32b7fb70e82bd23899bdb03d89fe028 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 7 Apr 2010 11:05:24 +0000 Subject: Make filename_from_path() compile. svn path=/trunk/netsurf/; revision=10264 --- riscos/gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'riscos/gui.c') 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); -- cgit v1.2.3