]> git.netwichtig.de Git - user/henk/code/exim.git/blobdiff - src/src/lookups/json.c
DCC: fix loop expression
[user/henk/code/exim.git] / src / src / lookups / json.c
index 0aaaba7f56b579a539f6d0b2e3ece8b9dd97c369..9b1fe78ed3b4e9d17e20ee8863d74563ac096302 100644 (file)
@@ -47,12 +47,7 @@ FILE * f;
 json_set_alloc_funcs(json_malloc, json_free);
 
 if (!(f = Ufopen(filename, "rb")))
-  {
-  int save_errno = errno;
-  *errmsg = string_open_failed(errno, "%s for json search", filename);
-  errno = save_errno;
-  return NULL;
-  }
+  *errmsg = string_open_failed("%s for json search", filename);
 return f;
 }
 
@@ -89,9 +84,6 @@ json_error_t jerr;
 uschar * key;
 int sep = 0;
 
-length = length;       /* Keep picky compilers happy */
-do_cache = do_cache;   /* Keep picky compilers happy */
-
 rewind(f);
 if (!(j = json_loadf(f, 0, &jerr)))
   {