Fixed type conversion error when parsing cu split termination.

This commit is contained in:
Jaakko Laitinen 2016-05-10 14:34:46 +03:00
parent 0d361d5bc7
commit a77eb5c874

View file

@ -812,7 +812,12 @@ int kvz_config_parse(kvz_config *cfg, const char *name, const char *value)
return result;
}
else if OPT("cu-split-termination")
parse_enum(value, cu_split_termination_names, cfg->cu_split_termination);
{
int8_t mode = KVZ_CU_SPLIT_TERMINATION_ZERO;
int result = parse_enum(value, cu_split_termination_names, &mode);
cfg->cu_split_termination = mode;
return result;
}
else
return 0;
#undef OPT