Commit f4cee9d5 authored by ferhat's avatar ferhat
Browse files

Corrects a bug in the way to test for the presence of the global variables

parent 051213f7
......@@ -363,7 +363,7 @@ Get_Arguments_and_global_variables(int nrhs,
}
}
*M_ = mexGetVariable("global", "M_");
if (M_ == NULL)
if (*M_ == NULL)
{
ostringstream tmp;
tmp << " in main, global variable not found: M_\n";
......@@ -371,14 +371,14 @@ Get_Arguments_and_global_variables(int nrhs,
}
/* Gets variables and parameters from global workspace of Matlab */
*oo_ = mexGetVariable("global", "oo_");
if (oo_ == NULL)
if (*oo_ == NULL)
{
ostringstream tmp;
tmp << " in main, global variable not found: oo_\n";
throw FatalExceptionHandling(tmp.str());
}
*options_ = mexGetVariable("global", "options_");
if (options_ == NULL)
if (*options_ == NULL)
{
ostringstream tmp;
tmp << " in main, global variable not found: options_\n";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment