From a928fcdc03c5b61fa25c861177ede0698d9c809f Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Tue, 24 Apr 2012 21:50:26 +0200 Subject: [PATCH] cec: fixed potentially uninitialised values in cec_command --- include/cectypes.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/cectypes.h b/include/cectypes.h index ea2c73d..6f7375b 100644 --- a/include/cectypes.h +++ b/include/cectypes.h @@ -759,6 +759,11 @@ typedef struct cec_command int32_t transmit_timeout; /**< the timeout to use in ms */ #ifdef __cplusplus + cec_command(void) + { + Clear(); + } + cec_command &operator =(const struct cec_command &command) { initiator = command.initiator; -- 2.34.1