From a889a9f9a866f5dea241773f04d52fafd3ab0175 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 8 Feb 2013 22:31:29 +0100 Subject: fix imlib2 and x11 warnings when opening a URL that returned an HTTP error --- src/imlib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/imlib.c b/src/imlib.c index 98a91be..2425050 100644 --- a/src/imlib.c +++ b/src/imlib.c @@ -224,7 +224,8 @@ int feh_load_image(Imlib_Image * im, feh_file * file) || (!strncmp(file->filename, "ftp://", 6))) { image_source = SRC_HTTP; - tmpname = feh_http_load_image(file->filename); + if ((tmpname = feh_http_load_image(file->filename)) == NULL) + err = IMLIB_LOAD_ERROR_FILE_DOES_NOT_EXIST; } else *im = imlib_load_image_with_error_return(file->filename, &err); -- cgit v1.2.3