Skip to content

Commit 3fcea77

Browse files
authored
Address spurious Microsoft compiler warnings (#49)
1 parent 5e97c3b commit 3fcea77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/core_json.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,7 @@ static bool_ nextKeyValuePair( const char * buf,
11641164
size_t * valueLength )
11651165
{
11661166
bool_ ret = true;
1167-
size_t i, keyStart, valueStart = 0U;
1167+
size_t i, keyStart, valueStart = 0;
11681168

11691169
assert( ( buf != NULL ) && ( start != NULL ) && ( max > 0U ) );
11701170
assert( ( key != NULL ) && ( keyLength != NULL ) );
@@ -1248,7 +1248,7 @@ static JSONStatus_t search( char * buf,
12481248
size_t * outValueLength )
12491249
{
12501250
JSONStatus_t ret = JSONPartial;
1251-
size_t i = 0, key, keyLength, value, valueLength;
1251+
size_t i = 0, key, keyLength, value = 0, valueLength = 0;
12521252

12531253
assert( ( buf != NULL ) && ( queryKey != NULL ) );
12541254
assert( ( outValue != NULL ) && ( outValueLength != NULL ) );

0 commit comments

Comments
 (0)