diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2011-10-22 16:19:13 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2011-10-22 16:19:13 +0000 |
| commit | 8dfc25432f0c295a80b419206f48da043054dcd3 (patch) | |
| tree | 28ac1aaf10f0da9c55ad1808cf14466de58e82d4 /src/version.h | |
| parent | cppcheck (diff) | |
| download | inkscape-8dfc25432f0c295a80b419206f48da043054dcd3.tar.gz inkscape-8dfc25432f0c295a80b419206f48da043054dcd3.zip | |
cppcheck: variable initialisation / fix possible memory leak
(bzr r10688)
Diffstat (limited to 'src/version.h')
| -rw-r--r-- | src/version.h | 5 |
1 files changed, 4 insertions, 1 deletions
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 |
