From: Lars Op den Kamp Date: Tue, 24 Apr 2012 19:50:26 +0000 (+0200) Subject: cec: fixed potentially uninitialised values in cec_command X-Git-Tag: upstream/2.2.0~1^2~29^2^2~49 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=a928fcdc03c5b61fa25c861177ede0698d9c809f;p=deb_libcec.git cec: fixed potentially uninitialised values in cec_command --- 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;