log_error(): Silence a warning when compiling with NDEBUG
[privoxy.git] / errlog.c
index 969c0bd..e9aba27 100644 (file)
--- a/errlog.c
+++ b/errlog.c
@@ -815,7 +815,10 @@ void log_error(int loglevel, const char *fmt, ...)
                   int ret = snprintf(outbuf + length,
                      log_buffer_size - length - 2, "\\x%.2x", (unsigned char)*sval);
                   assert(ret == 4);
-                  length += 4;
+                  if (ret == 4)
+                  {
+                     length += 4;
+                  }
                }
                sval++;
             }