Skip to content

Commit 8dd4070

Browse files
author
Felipe Zimmerle
committed
good practices: Initialize variables before use it
Original author: Marc Stern (#1889)
1 parent 5367bca commit 8dd4070

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
DD MMM YYYY - 2.9.3 - To be released
22
------------------------------------
33

4+
* good practices: Initialize variables before use it
5+
[Issue #1889 - Marc Stern]
46
* Let body parsers observe SecRequestBodyNoFilesLimit
57
[Issue #1613 - @allanbomsft]
68
* potential off by one in parse_arguments

apache2/msc_util.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,8 @@ char *parse_pm_content(const char *op_parm, unsigned short int op_len, msre_rule
405405
char converted = 0;
406406
int i, x;
407407
unsigned char bin = 0, esc = 0, bin_offset = 0;
408-
unsigned char bin_parm[3], c = 0;
408+
unsigned char c = 0;
409+
unsigned char bin_parm[3] = { 0 };
409410
char *processed = NULL;
410411

411412
content = apr_pstrdup(rule->ruleset->mp, op_parm);

0 commit comments

Comments
 (0)