about summary refs log tree commit diff
path: root/sysdeps/generic/dl-cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/dl-cache.c')
-rw-r--r--sysdeps/generic/dl-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/generic/dl-cache.c b/sysdeps/generic/dl-cache.c
index 85db10e06c..fdbff88279 100644
--- a/sysdeps/generic/dl-cache.c
+++ b/sysdeps/generic/dl-cache.c
@@ -184,7 +184,7 @@ _dl_load_cache_lookup (const char *name)
 	}
       else if (file && cachesize > sizeof *cache_new)
 	{
-	  cache_new = (struct cache_file_new *) file;
+	  cache = cache_new = (struct cache_file_new *) file;
 	  if (memcmp (cache_new->magic, CACHEMAGIC_NEW,
 		      sizeof CACHEMAGIC_NEW - 1)
 	      || memcmp (cache_new->version, CACHE_VERSION,