From bdfa3334cab62eea61a84ba9f816d308e3a354da Mon Sep 17 00:00:00 2001 From: Eran Date: Thu, 11 Apr 2024 08:56:12 +0300 Subject: [PATCH] fix settings in rs2_create_context (cherry picked from commit 2b6670ecf3d62d5eda1878a6ba7d4761e19ef452) --- src/rs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rs.cpp b/src/rs.cpp index f24753145f..57b3c180ec 100644 --- a/src/rs.cpp +++ b/src/rs.cpp @@ -253,7 +253,7 @@ rs2_context* rs2_create_context(int api_version, rs2_error** error) BEGIN_API_CA { verify_version_compatibility(api_version); - json settings; + json settings = json::object(); return new rs2_context{ context::make( settings ) }; } HANDLE_EXCEPTIONS_AND_RETURN(nullptr, api_version)