summaryrefslogtreecommitdiff
path: root/src/log.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2022-04-13 18:53:06 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2022-04-13 22:18:10 -0400
commit206fafa37d7efbc0ec0ed04eeab1d926a37d5bd0 (patch)
tree26615ae930d16310fc4f1fea3fcf8da3e4680ee3 /src/log.c
parent20b6ef9985852867d8b729bbdf33b5ab107fa394 (diff)
downloadlighttpd-git-206fafa37d7efbc0ec0ed04eeab1d926a37d5bd0.tar.gz
[core] quiet compiler warning
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/log.c b/src/log.c
index aebeedc9..3f1acfc8 100644
--- a/src/log.c
+++ b/src/log.c
@@ -200,6 +200,7 @@ log_buffer_vsprintf (buffer * const restrict b,
/* need to encode log line
* copy original line fragment, append encoded line to buffer, free copy */
char * const src = (char *)malloc(n);
+ ck_assert(src);
memcpy(src, s, n); /*(note: not '\0'-terminated)*/
buffer_truncate(b, blen);
buffer_append_string_c_escaped(b, src, n);