Skip to content
Snippets Groups Projects
Commit e48cde4a authored by Marti Bolivar's avatar Marti Bolivar
Browse files

GenericProcessor: don't return a reference to a stack variable.


That's not gonna work. Since nullParam is just a "nothing found", put
it in static storage and return that.

Signed-off-by: default avatarMarti Bolivar <mbolivar@leaflabs.com>
parent 93c6586d
Branches
Tags
No related merge requests found
......@@ -54,7 +54,7 @@ Parameter& GenericProcessor::getParameterByName(String name_)
return p;//parameters.getReference(i);
}
Parameter nullParam = Parameter("VOID", false, -1);
static Parameter nullParam = Parameter("VOID", false, -1);
return nullParam;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment