Commit 00215a99 authored by Lee Savoie's avatar Lee Savoie

Ensure error conditions are caught when reading config

parent bbae9bca
...@@ -293,7 +293,7 @@ static void base_read_config(const char * anno, model_net_base_params *p){ ...@@ -293,7 +293,7 @@ static void base_read_config(const char * anno, model_net_base_params *p){
ret = configuration_get_value(&config, "PARAMS", ret = configuration_get_value(&config, "PARAMS",
"prio-sched-sub-sched", anno, sched, MAX_NAME_LENGTH); "prio-sched-sub-sched", anno, sched, MAX_NAME_LENGTH);
if (ret == 0) if (ret <= 0)
*sub_stype = MN_SCHED_FCFS; *sub_stype = MN_SCHED_FCFS;
else{ else{
int i; int i;
......
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