Skip to content

Commit 617270b

Browse files
author
Malay Shah
committed
Fixing string index issue when checking for control characters
1 parent 5d0ed23 commit 617270b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib_json/json_writer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ static bool isControlCharacter(char ch)
2020

2121
static bool containsControlCharacter( const char* str )
2222
{
23-
while ( str )
23+
while ( *str )
2424
{
2525
if ( isControlCharacter( *(str++) ) )
2626
return true;

0 commit comments

Comments
 (0)