From a77eb5c874535baeafe2fcddc2660f9a4f93a20e Mon Sep 17 00:00:00 2001 From: Jaakko Laitinen Date: Tue, 10 May 2016 14:34:46 +0300 Subject: [PATCH] Fixed type conversion error when parsing cu split termination. --- src/cfg.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/cfg.c b/src/cfg.c index 4ae96c42..381c46a7 100644 --- a/src/cfg.c +++ b/src/cfg.c @@ -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