Skip to content

Commit

Permalink
allow empty string in context configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
maloel committed Dec 19, 2023
1 parent 4e7a18d commit d47b6ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ namespace librealsense {

/*static*/ std::shared_ptr< context > context::make( char const * json_settings )
{
return make( json_settings ? json::parse( json_settings ) : json::object() );
return make( ( ! json_settings || ! *json_settings ) ? json::object() : json::parse( json_settings ) );
}


Expand Down

0 comments on commit d47b6ae

Please sign in to comment.