From 317460e4f8db8551052009056124511d63dd8289 Mon Sep 17 00:00:00 2001 From: Christian Beer Date: Wed, 4 Nov 2015 13:21:37 +0100 Subject: [PATCH] Lib: initialize field in constructor fixes CID 27976 found by Coverity --- lib/mfile.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/mfile.cpp b/lib/mfile.cpp index 7e12e41263..40d3400c39 100644 --- a/lib/mfile.cpp +++ b/lib/mfile.cpp @@ -38,6 +38,7 @@ MFILE::MFILE() { buf = (char*)malloc(64*1024); len = 0; + f = NULL; } MFILE::~MFILE() {