From 2c3aa286f7eb25edf25b22b7c32b966543aeda2c Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Mon, 25 Feb 2019 20:10:32 +0000 Subject: [PATCH] config: add variable initialization [-Wconditional-uninitialized] reason:add variable initialization https://github.com/logrotate/logrotate/pull/240/commits config.c:314:17: warning: variable 'm' may be uninitialized when used here config.c:287:19: note: initialize the variable 'm' to silence this warning Signed-off-by: Sami Kerola --- config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.c b/config.c index 239c943..07bd374 100644 --- a/config.c +++ b/config.c @@ -304,7 +304,7 @@ static int readModeUidGid(const char *configFile, int lineNum, char *key, gid_t *pGid) { char u[200], g[200]; - unsigned int m; + unsigned int m = 0; char tmp; int rc; -- 1.8.3.1