Browse Source
Merge pull request #396 from julian-st/master
initialize variables in print_number
pull/401/head
Alanscut
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
cJSON.c
|
|
@ -487,9 +487,9 @@ static cJSON_bool print_number(const cJSON * const item, printbuffer * const out |
|
|
|
double d = item->valuedouble; |
|
|
|
int length = 0; |
|
|
|
size_t i = 0; |
|
|
|
unsigned char number_buffer[26]; /* temporary buffer to print the number into */ |
|
|
|
unsigned char number_buffer[26] = {0}; /* temporary buffer to print the number into */ |
|
|
|
unsigned char decimal_point = get_decimal_point(); |
|
|
|
double test; |
|
|
|
double test = 0.0; |
|
|
|
|
|
|
|
if (output_buffer == NULL) |
|
|
|
{ |
|
|
|