about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDuncan Overbruck <mail@duncano.de>2019-08-25 13:08:31 +0200
committerDuncan Overbruck <mail@duncano.de>2019-08-25 14:21:18 +0200
commit6d251bc654f5cc29070536aae58f0aaf6e7d2f39 (patch)
tree07040f74cbb1732d55d97428bf6581c0185ef17c
parent0f39e1f97ada46752ed07c1e1033fe4e062c8da9 (diff)
downloadrunit-void-6d251bc654f5cc29070536aae58f0aaf6e7d2f39.tar.gz
runit-void-6d251bc654f5cc29070536aae58f0aaf6e7d2f39.tar.xz
runit-void-6d251bc654f5cc29070536aae58f0aaf6e7d2f39.zip
vlogger: fix uninitialized value warnings found with clang scan-build
-rw-r--r--vlogger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vlogger.c b/vlogger.c
index cba5183..d820991 100644
--- a/vlogger.c
+++ b/vlogger.c
@@ -121,7 +121,7 @@ main(int argc, char *argv[])
 
 	if (!Sflag && access("/etc/vlogger", X_OK) != -1) {
 		CODE *cp;
-		const char *sfacility, *slevel;
+		const char *sfacility = "", *slevel = "";
 		for (cp = prioritynames; cp->c_name; cp++) {
 			if (cp->c_val == level)
 				slevel = cp->c_name;