Fix coverity scan 1592958, wrong sizeof argument

This commit is contained in:
Roger A. Light
2025-08-10 19:48:59 +01:00
parent b1e78d3915
commit d48eaabef5
+1 -1
View File
@@ -110,7 +110,7 @@ int persist__chunk_client_msg_read_v56(FILE *db_fptr, struct P_client_msg *chunk
struct mosquitto__packet_in prop_packet;
int rc;
memset(&prop_packet, 0, sizeof(struct mosquitto__packet));
memset(&prop_packet, 0, sizeof(struct mosquitto__packet_in));
read_e(db_fptr, &chunk->F, sizeof(struct PF_client_msg));
chunk->F.mid = ntohs(chunk->F.mid);