good practices: Initialize variables before use it

Original author: Marc Stern (#1889)
This commit is contained in:
Felipe Zimmerle 2018-09-05 23:22:53 -03:00
parent d302b99ec5
commit d7b9726357
No known key found for this signature in database
GPG Key ID: E6DFB08CE8B11277
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,8 @@
v3.0.3 - YYYY-MMM-DD (to be released)
-------------------------------------
- good practices: Initialize variables before use it
[Issue #1889 - Marc Stern]
- Fix utf-8 character encoding conversion
[Issue #1794 - @tinselcity, @zimmerle]
- Adds support for ctl:requestBodyProcessor=URLENCODED

View File

@ -42,7 +42,8 @@ char *parse_pm_content(const char *op_parm, unsigned short int op_len, const cha
// char converted = 0;
int i, x;
unsigned char bin = 0, esc = 0, bin_offset = 0;
unsigned char bin_parm[3], c = 0;
unsigned char c = 0;
unsigned char bin_parm[3] = { 0 };
char *processed = NULL;
content = strdup(op_parm);