[Rivet-svn] rivet: Fix unitialised value error

Rivet Mercurial rivet at projects.hepforge.org
Thu May 18 01:15:02 BST 2017


details:   https://rivet.hepforge.org/hg/rivet/rev/1be2a89502db
branches:  release-2-5-x
changeset: 5787:1be2a89502db
user:      Holger Schulz <holger.schulz at durham.ac.uk>
date:      Wed May 17 17:13:30 2017 -0700
description:
Fix unitialised value error

diffs (11 lines):

--- a/src/Analyses/OPAL_2004_I631361.cc	Wed May 17 21:10:07 2017 +0100
+++ b/src/Analyses/OPAL_2004_I631361.cc	Wed May 17 17:13:30 2017 -0700
@@ -20,7 +20,7 @@
     void init() {
       declare(FinalState(), "FS");
       declare(ChargedFinalState(), "CFS");
-      int ih = 0, iy;
+      int ih(0), iy(0);
       if (inRange(0.5*sqrtS()/GeV, 5.0, 5.5)) {
         ih = 1;
 	iy = 1;


More information about the Rivet-svn mailing list