From: Christian Brauner Date: Tue, 30 May 2017 02:40:12 +0000 (+0200) Subject: confile: config_kmsg() X-Git-Tag: lxc-2.1.0~110^2~122 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3d6b7fdc7c7461dc6ad90a7f8e7cfd4f91b27343;p=thirdparty%2Flxc.git confile: config_kmsg() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 71cca4026..894327dd8 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -1418,11 +1418,15 @@ static int config_ttydir(const char *key, const char *value, } static int config_kmsg(const char *key, const char *value, - struct lxc_conf *lxc_conf) + struct lxc_conf *lxc_conf) { - if (config_value_empty(value)) + /* Set config value to default. */ + if (config_value_empty(value)) { + lxc_conf->kmsg = 0; return 0; + } + /* Parse new config value. */ if (lxc_safe_uint(value, &lxc_conf->kmsg) < 0) return -1;