From 8dfc25432f0c295a80b419206f48da043054dcd3 Mon Sep 17 00:00:00 2001 From: Kris De Gussem Date: Sat, 22 Oct 2011 18:19:13 +0200 Subject: cppcheck: variable initialisation / fix possible memory leak (bzr r10688) --- src/version.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/version.h') diff --git a/src/version.h b/src/version.h index c62063123..faa8c38b2 100644 --- a/src/version.h +++ b/src/version.h @@ -17,7 +17,10 @@ namespace Inkscape { struct Version { - Version() {} + Version() { + major = 0; + minor = 0; + } Version(unsigned mj, unsigned mn) { // somebody pollutes our namespace with major() and minor() // macros, so we can't use new-style initializers -- cgit v1.2.3