summaryrefslogtreecommitdiffstats
path: root/modules/metadata/mod_headers.c
diff options
context:
space:
mode:
authorStefan Fritsch <sf@apache.org>2011-09-19 20:04:47 +0200
committerStefan Fritsch <sf@apache.org>2011-09-19 20:04:47 +0200
commit62441a77e496580609c0b0e643e0f80e2543abee (patch)
treeadba7d1cd1c3caa155a09f9d4d0a79a10335abdd /modules/metadata/mod_headers.c
parentRemove from documentation STATUS things that have already been done. (diff)
downloadapache2-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.c2
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;