From: Christian Brauner Date: Mon, 29 May 2017 13:01:28 +0000 (+0200) Subject: confile: config_stopsignal() X-Git-Tag: lxc-1.0.11~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76b83cb145389f52b2b915d0deb116d5beaa8ab2;p=thirdparty%2Flxc.git confile: config_stopsignal() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 40c327f64..01d38e051 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -1294,10 +1294,14 @@ static int config_haltsignal(const char *key, const char *value, } static int config_stopsignal(const char *key, const char *value, - struct lxc_conf *lxc_conf) + struct lxc_conf *lxc_conf) { - int sig_n = sig_parse(value); + int sig_n; + if (config_value_empty(value)) + return 0; + + sig_n = sig_parse(value); if (sig_n < 0) return -1; lxc_conf->stopsignal = sig_n;