Skip to content

Commit 202ab7c

Browse files
committed
Move to debug mode
1 parent dfb9b9d commit 202ab7c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

auparse/lru.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,11 +297,13 @@ void lru_evict(Queue *queue, unsigned int key)
297297
Hash *hash = queue->hash;
298298
QNode *temp = queue->front;
299299

300+
#ifdef DEBUG
300301
if (hash->array[key] != temp) {
301302
syslog(LOG_ERR, "lru_evict called with mismatched key %s",
302303
queue->name);
303304
abort();
304305
}
306+
#endif
305307

306308
hash->array[key] = NULL;
307309
remove_node(queue, queue->front);

0 commit comments

Comments
 (0)