浏览代码

Merge pull request #9588 from richardkchapman/coverity-warn2

HPCC-17050 Coverity: uninitialised fields in metaphone code

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
Gavin Halliday 8 年之前
父节点
当前提交
a072ebfdbe
共有 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: