Skip to content

Commit da7231d

Browse files
committed
Fix static-analyizer warnings
Initialize the key wrap structs to 0. Also make the clang-tidy-builder.sh user executable to make it easier to run locally
1 parent 3fc8493 commit da7231d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/wh_server_keystore.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,7 @@ int wh_Server_HandleKeyRequest(whServerContext* server, uint16_t magic,
11891189

11901190
#ifdef WOLFHSM_CFG_KEYWRAP
11911191
case WH_KEY_WRAP: {
1192-
whMessageKeystore_WrapRequest wrapReq = {0};
1192+
whMessageKeystore_WrapRequest wrapReq = {0};
11931193
whMessageKeystore_WrapResponse wrapResp = {0};
11941194
uint8_t* reqData;
11951195
uint8_t* respData;
@@ -1225,7 +1225,7 @@ int wh_Server_HandleKeyRequest(whServerContext* server, uint16_t magic,
12251225
} break;
12261226

12271227
case WH_KEY_UNWRAPEXPORT: {
1228-
whMessageKeystore_UnwrapAndExportRequest unwrapReq = {0};
1228+
whMessageKeystore_UnwrapAndExportRequest unwrapReq = {0};
12291229
whMessageKeystore_UnwrapAndExportResponse unwrapResp = {0};
12301230
uint8_t* reqData;
12311231
uint8_t* respData;
@@ -1263,7 +1263,7 @@ int wh_Server_HandleKeyRequest(whServerContext* server, uint16_t magic,
12631263
} break;
12641264

12651265
case WH_KEY_UNWRAPCACHE: {
1266-
whMessageKeystore_UnwrapAndCacheRequest cacheReq = {0};
1266+
whMessageKeystore_UnwrapAndCacheRequest cacheReq = {0};
12671267
whMessageKeystore_UnwrapAndCacheResponse cacheResp = {0};
12681268
uint8_t* reqData;
12691269
uint8_t* respData;

0 commit comments

Comments
 (0)