log.c: len is always positive, remove useless check (Thanks Marcus)

This commit is contained in:
Michael Stapelberg 2012-05-02 20:07:59 +02:00
parent 07a385bb7a
commit 280a35717b
1 changed files with 0 additions and 5 deletions

View File

@ -210,11 +210,6 @@ static void vlog(const bool print, const char *fmt, va_list args) {
vprintf(fmt, args);
} else {
len += vsnprintf(message + len, sizeof(message) - len, fmt, args);
if (len < 0 ) {
fprintf(stderr, "BUG: something is overflowing here. Dropping the log entry\n");
return;
}
if (len >= sizeof(message)) {
fprintf(stderr, "BUG: single log message > 4k\n");
}