]> git.sur5r.net Git - i3/i3/commitdiff
log.c: len is always positive, remove useless check (Thanks Marcus)
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 2 May 2012 18:07:59 +0000 (20:07 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 2 May 2012 18:07:59 +0000 (20:07 +0200)
src/log.c

index 768ce92b1ebd37c65bb8c4a1440b76185cf01131..92e8f57c758f75c4ca2a98b31a5ab42a35ebf8cc 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -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");
         }