From 06099547ea99e5ff02a84471c029f433820859df Mon Sep 17 00:00:00 2001 From: Ewerton Scaboro da Silva Date: Tue, 9 Jan 2024 09:16:42 -0800 Subject: [PATCH] Fix IoTHubClient_LL_UploadToBlob_NotifyCompletion to use empty string when responseMessage is NULL (gh2554) (#2555) --- iothub_client/src/iothub_client_ll_uploadtoblob.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iothub_client/src/iothub_client_ll_uploadtoblob.c b/iothub_client/src/iothub_client_ll_uploadtoblob.c index 03a3d7fe2..c13b89dcd 100644 --- a/iothub_client/src/iothub_client_ll_uploadtoblob.c +++ b/iothub_client/src/iothub_client_ll_uploadtoblob.c @@ -1061,7 +1061,7 @@ IOTHUB_CLIENT_RESULT IoTHubClient_LL_UploadToBlob_NotifyCompletion(IOTHUB_CLIENT uploadCorrelationId, isSuccess ? RESPONSE_BODY_SUCCESS_BOOLEAN_STRING : RESPONSE_BODY_ERROR_BOOLEAN_STRING, responseCode, - responseMessage); + responseMessage != NULL ? responseMessage : EMPTY_STRING); if(response == NULL) {