agent: Fix SEGV when debuging for cache enabled.

* agent/cache.c (agent_get_cache): Avoid dereferencing NULL.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2020-10-09 12:02:07 +09:00
parent f4166209e3
commit 33cb1655f1
1 changed files with 1 additions and 1 deletions

View File

@ -476,7 +476,7 @@ agent_get_cache (ctrl_t ctrl, const char *key, cache_mode_t cache_mode)
if (DBG_CACHE)
log_debug ("agent_get_cache '%s'.%d (mode %d)%s ...\n",
key, ctrl->restricted, cache_mode,
key, restricted, cache_mode,
last_stored? " (stored cache key)":"");
housekeeping ();