cec: fixed potentially uninitialised values in cec_command
authorLars Op den Kamp <lars@opdenkamp.eu>
Tue, 24 Apr 2012 19:50:26 +0000 (21:50 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Tue, 24 Apr 2012 20:33:27 +0000 (22:33 +0200)
include/cectypes.h

index ea2c73dc653935695f8968e7a61011656bbd5ddd..6f7375b3fc5ecf9bfed6442e14ad7d7a672f2478 100644 (file)
@@ -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;