From 66acc1dea5f595fd140e12e01ca13ac9d179edc4 Mon Sep 17 00:00:00 2001 From: Olof hagsand Date: Sun, 24 Sep 2017 19:53:48 +0200 Subject: [PATCH] cliscrolling wrongly in sanity should be in default --- lib/src/clixon_options.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/src/clixon_options.c b/lib/src/clixon_options.c index 229a77ba..c239daf9 100644 --- a/lib/src/clixon_options.c +++ b/lib/src/clixon_options.c @@ -196,6 +196,11 @@ clicon_option_default(clicon_hash_t *copt) if (hash_add(copt, "CLICON_CLI_GENMODEL_COMPLETION", "0", strlen("0")+1) < 0) goto catch; } + /* Default is to use line-scrolling */ + if (!hash_lookup(copt, "CLICON_CLI_LINESCROLLING")){ + if (hash_add(copt, "CLICON_CLI_LINESCROLLING", "1", strlen("1")+1) < 0) + goto catch; + } retval = 0; catch: return retval; @@ -244,11 +249,6 @@ clicon_option_sanity(clicon_hash_t *copt) clicon_err(OE_UNIX, 0, "CLICON_BACKEND_PIDFILE not defined in config file"); goto done; } - /* Default is to use line-scrolling */ - if (!hash_lookup(copt, "CLICON_CLI_LINESCROLLING")){ - if (hash_add(copt, "CLICON_CLI_LINESCROLLING", "1", strlen("1")+1) < 0) - goto done; - } retval = 0; done: return retval;