Blame SOURCES/tigervnc-passwd-crash-with-malloc-checks.patch

be441b
diff --git a/common/rfb/util.h b/common/rfb/util.h
be441b
index b678b89..9e59bd3 100644
be441b
--- a/common/rfb/util.h
be441b
+++ b/common/rfb/util.h
be441b
@@ -50,7 +50,7 @@ namespace rfb {
be441b
     CharArray() : buf(0) {}
be441b
     CharArray(char* str) : buf(str) {} // note: assumes ownership
be441b
     CharArray(int len) {
be441b
-      buf = new char[len];
be441b
+      buf = new char[len]();
be441b
     }
be441b
     ~CharArray() {
be441b
       delete [] buf;