summary refs log tree commit diff
diff options
context:
space:
mode:
authorPolarGo <33907525+PolarGo@users.noreply.github.com>2017-11-23 23:21:53 -0700
committerEnno Boland <g@s01.de>2017-11-24 07:49:09 +0100
commite6b8b91dcd38ebcfbb0d41753d814edf78b06989 (patch)
tree9333adef2ebf6f2cb66c20b5f40e958919b78f89
parentc50c5463355ac3f3092f985f377a85b4d19fe70c (diff)
downloadsocklog-void-e6b8b91dcd38ebcfbb0d41753d814edf78b06989.tar.gz
socklog-void-e6b8b91dcd38ebcfbb0d41753d814edf78b06989.tar.xz
socklog-void-e6b8b91dcd38ebcfbb0d41753d814edf78b06989.zip
Update nanoklogd.c
stop in undefined in line 41 without this change.
-rw-r--r--nanoklogd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nanoklogd.c b/nanoklogd.c
index f4388fe..3fe6216 100644
--- a/nanoklogd.c
+++ b/nanoklogd.c
@@ -23,7 +23,8 @@ static const struct {
 int
 main(int argc, char *argv[]) {
 	char buf[16384];
-	int f, l, start, stop;
+	int f, l, start;
+	int stop = 0;
 
 	f = socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0);
 	if (f < 0)