summaryrefslogtreecommitdiffstats
path: root/os
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 /os
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 'os')
-rw-r--r--os/win32/util_win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/win32/util_win32.c b/os/win32/util_win32.c
index 3a4038a5d0..86bd419f9f 100644
--- a/os/win32/util_win32.c
+++ b/os/win32/util_win32.c
@@ -112,7 +112,7 @@ PSECURITY_ATTRIBUTES GetNullACL(void)
PSECURITY_ATTRIBUTES sa;
sa = (PSECURITY_ATTRIBUTES) LocalAlloc(LPTR, sizeof(SECURITY_ATTRIBUTES));
- sa->nLength = sizeof(sizeof(SECURITY_ATTRIBUTES));
+ sa->nLength = sizeof(SECURITY_ATTRIBUTES);
pSD = (PSECURITY_DESCRIPTOR) LocalAlloc(LPTR, SECURITY_DESCRIPTOR_MIN_LENGTH);
sa->lpSecurityDescriptor = pSD;