Skip to content

Commit d7b9726

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

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
v3.0.3 - YYYY-MMM-DD (to be released)
22
-------------------------------------
33

4+
- good practices: Initialize variables before use it
5+
[Issue #1889 - Marc Stern]
46
- Fix utf-8 character encoding conversion
57
[Issue #1794 - @tinselcity, @zimmerle]
68
- Adds support for ctl:requestBodyProcessor=URLENCODED

src/utils/acmp.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ char *parse_pm_content(const char *op_parm, unsigned short int op_len, const cha
4242
// char converted = 0;
4343
int i, x;
4444
unsigned char bin = 0, esc = 0, bin_offset = 0;
45-
unsigned char bin_parm[3], c = 0;
45+
unsigned char c = 0;
46+
unsigned char bin_parm[3] = { 0 };
4647
char *processed = NULL;
4748

4849
content = strdup(op_parm);

0 commit comments

Comments
 (0)