diff options
Diffstat (limited to 'src/cache.c')
-rw-r--r-- | src/cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cache.c b/src/cache.c index c3f83cc..c19cc66 100644 --- a/src/cache.c +++ b/src/cache.c @@ -338,7 +338,7 @@ cache_clear( cache_t *cache, uint32_t cacheid ) { - if (cache && (!cacheid || cache->cacheid != cacheid)) { + if (cache && (cache->cacheid != cacheid || !cacheid)) { cache->cacheid = cacheid; cache->used = 0; } |