From 365ca7960f751a501fc195670abd0acfc160f8d3 Mon Sep 17 00:00:00 2001 From: Christian Beer Date: Tue, 20 Oct 2015 17:57:57 +0200 Subject: [PATCH] initialize fields in constructors fixes CID 28025 found by Coverity Scan --- api/gutil.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/gutil.cpp b/api/gutil.cpp index 04588366c2..a0b4346d19 100644 --- a/api/gutil.cpp +++ b/api/gutil.cpp @@ -457,6 +457,8 @@ STARFIELD::STARFIELD() { stars = NULL; zmax = 8; zmaxinv = 1/zmax; + speed = 0; + nstars = 0; } //