diff --git a/src/gstorage.c b/src/gstorage.c index 19e78b6099..3cc44e9544 100644 --- a/src/gstorage.c +++ b/src/gstorage.c @@ -551,7 +551,7 @@ count_invalid (GLog * glog, const char *line) { LOG_INVALID (("%s", line)); } - if (glog->items->errstr && glog->invalid < MAX_LOG_ERRORS) { + if (glog->items->errstr && glog->log_erridx < MAX_LOG_ERRORS) { glog->errors[glog->log_erridx++] = xstrdup (glog->items->errstr); } }