diff options
author | Stefan Fritsch <sf@apache.org> | 2011-09-19 20:04:47 +0200 |
---|---|---|
committer | Stefan Fritsch <sf@apache.org> | 2011-09-19 20:04:47 +0200 |
commit | 62441a77e496580609c0b0e643e0f80e2543abee (patch) | |
tree | adba7d1cd1c3caa155a09f9d4d0a79a10335abdd /modules/metadata/mod_headers.c | |
parent | Remove from documentation STATUS things that have already been done. (diff) | |
download | apache2-62441a77e496580609c0b0e643e0f80e2543abee.tar.xz apache2-62441a77e496580609c0b0e643e0f80e2543abee.zip |
Fix issues found by PVS-Studio static analyzer:
mod_mime_magic:
cut'n'paste error rsl_encoding vs. rsl_separator, also simplify code a bit
mod_header:
wrong string initialization (leading to segfault if format argument is missing)
util_win32: duplicate sizeof (untested; Windows people, please review)
PR: 51542
Submitted by: Andrey Karpov <karpov viva64 com>, Stefan Fritsch
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1172732 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/metadata/mod_headers.c')
-rw-r--r-- | modules/metadata/mod_headers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/metadata/mod_headers.c b/modules/metadata/mod_headers.c index b82281ea0c..961d26aae2 100644 --- a/modules/metadata/mod_headers.c +++ b/modules/metadata/mod_headers.c @@ -332,7 +332,7 @@ static char *parse_format_tag(apr_pool_t *p, format_tag *tag, const char **sa) return NULL; } - tag->arg = '\0'; + tag->arg = "\0"; /* grab the argument if there is one */ if (*s == '{') { ++s; |