]> granicus.if.org Git - mutt/commitdiff
Fix a reference to HeaderCachePageSize.
authorKevin McCarthy <kevin@8t8.us>
Thu, 18 Jul 2019 20:44:19 +0000 (13:44 -0700)
committerKevin McCarthy <kevin@8t8.us>
Thu, 18 Jul 2019 20:44:19 +0000 (13:44 -0700)
Commit 4c728278 converted the config far to type DT_LNUM, but
embarrassingly I missed a usage.

hcache.c

index 466bb4d196e8335cdfb28834110466462da052c0..07f3fbd3e3f4c2635b53b8bb946bfa2c1601c520 100644 (file)
--- a/hcache.c
+++ b/hcache.c
@@ -1259,7 +1259,8 @@ hcache_open_db4 (struct header_cache* h, const char* path)
   u_int32_t createflags = DB_CREATE;
   int pagesize;
 
-  if (mutt_atoi (HeaderCachePageSize, &pagesize) < 0 || pagesize <= 0)
+  pagesize = HeaderCachePageSize;
+  if (pagesize <= 0)
     pagesize = 16384;
 
   snprintf (h->lockfile, _POSIX_PATH_MAX, "%s-lock-hack", path);