From cfa624f52fb41fdda2b9463370b3b37260babc54 Mon Sep 17 00:00:00 2001
From: Michel Juillard <michel.juillard@ens.fr>
Date: Fri, 21 May 2010 11:38:23 +0200
Subject: [PATCH] preprocessor: corrected missing initialization of v3 in
 <fname>_dynamic.c

---
 preprocessor/DynamicModel.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/preprocessor/DynamicModel.cc b/preprocessor/DynamicModel.cc
index 8d040ad4c..18034b10c 100644
--- a/preprocessor/DynamicModel.cc
+++ b/preprocessor/DynamicModel.cc
@@ -1224,6 +1224,7 @@ DynamicModel::writeDynamicCFile(const string &dynamic_basename) const
                     << "     v2 = mxGetPr(plhs[2]);" << endl
                     << "  }" << endl
                     << endl
+                    << "  v3 = NULL;" << endl
                     << " if (nlhs >= 4)" << endl
                     << "  {" << endl
                     << "     /* Set the output pointer to the output matrix v3. */" << endl
-- 
GitLab