[Privoxy-commits] [privoxy] 01/46: log_error(): Silence a warning when compiling with NDEBUG
User Git
git at git.privoxy.org
Sun Feb 21 15:10:23 UTC 2021
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository privoxy.
commit d15d72235206a3c2925a4f96471b443fc51d90bc
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Thu Feb 4 13:38:09 2021 +0100
log_error(): Silence a warning when compiling with NDEBUG
---
errlog.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/errlog.c b/errlog.c
index 969c0bd7..e9aba277 100644
--- 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++;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Privoxy-commits
mailing list