diff --git a/src/email.c b/src/email.c
index 64b82e465c1af5ea9df81f0eb59fbfdf50f7478e..509eb2305532c9d1d199ed441640df470cf4316a 100644 (file)
--- a/src/email.c
+++ b/src/email.c
type_list_incr (&count, type, 1);
pthread_mutex_unlock (&count_mutex);
type_list_incr (&count, type, 1);
pthread_mutex_unlock (&count_mutex);
- pthread_mutex_lock (&size_mutex);
- type_list_incr (&size, type, bytes);
- pthread_mutex_unlock (&size_mutex);
+ if (bytes > 0) {
+ pthread_mutex_lock (&size_mutex);
+ type_list_incr (&size, type, bytes);
+ pthread_mutex_unlock (&size_mutex);
+ }
}
else if ('s' == line[0]) { /* s:<value> */
pthread_mutex_lock (&score_mutex);
}
else if ('s' == line[0]) { /* s:<value> */
pthread_mutex_lock (&score_mutex);