浏览代码

HPCC-17050 Coverity: uninitialised fields in metaphone code

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 8 年之前
父节点
当前提交
d74bc5eb47
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      plugins/dmetaphone/metaphone.h

+ 3 - 2
plugins/dmetaphone/metaphone.h

@@ -26,8 +26,9 @@ namespace nsDmetaphone {
 
 class DMETAPHONE_API MString : public cString
 {
-        int             length, last;
-        bool    alternate;
+        int     length = 0;
+        int     last = 0;
+        bool    alternate = false;
         cString primary, secondary;
 
 public: