solstice

Compute collected power and efficiencies of a solar plant
git clone git://git.meso-star.com/solstice.git
Log | Files | Refs | README | LICENSE

commit 767afdefcc343a9d9fe9130c294ed1601c5ac684
parent 4e78a30126d75fa0dbaef85eeaef0e12c50bb846
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Fri, 13 Jan 2017 10:52:19 +0100

Fix error reporting in solstice_setup_entities

Diffstat:
Msrc/solstice_entity.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/solstice_entity.c b/src/solstice_entity.c @@ -252,7 +252,10 @@ solstice_setup_entities(struct solstice* solstice) entity = solparser_get_entity(solstice->parser, entity_id); root = create_node(solstice, entity); - if(!root) goto error; + if(!root) { + res = RES_BAD_ARG; + goto error; + } /* Initialialised the world space position of the entity geometry */ res = sanim_node_visit_tree