librazor/uri-io.c
changeset 497 6fbb686d919f
parent 487 a5837882a252
     1.1 --- a/librazor/uri-io.c	Mon Jul 11 16:12:45 2016 +0100
     1.2 +++ b/librazor/uri-io.c	Tue Apr 24 19:27:53 2018 +0100
     1.3 @@ -164,7 +164,6 @@
     1.4  	int is_dir;
     1.5  	char *path, *slash, *s;
     1.6  	void *addr;
     1.7 -	struct razor_error *tmp_error = NULL;
     1.8  
     1.9  	path = strdup(filename);
    1.10  	slash = strrchr(path, '/');
    1.11 @@ -226,7 +225,7 @@
    1.12  		addr = razor_file_get_contents_archive(filename, &size, error);
    1.13  		if (!addr) {
    1.14  			if (error && saved_errno != ENOTDIR &&
    1.15 -			    razor_error_matches(error, RAZOR_POSIX_ERROR,
    1.16 +			    razor_error_matches(*error, RAZOR_POSIX_ERROR,
    1.17  						ENOTDIR)) {
    1.18  				razor_error_free(*error);
    1.19  				*error = NULL;