summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorratchov <ratchov@openbsd.org>2015-12-23 12:24:12 +0000
committerratchov <ratchov@openbsd.org>2015-12-23 12:24:12 +0000
commit08e6074d7bbe9e0cc487d78c2f8c454fcb550c54 (patch)
tree947e5c4c4216e5c7c5d01740388ad1f9f05d8d29
parentCall getpwname() earlier, and if it fails, return the proper (diff)
downloadwireguard-openbsd-08e6074d7bbe9e0cc487d78c2f8c454fcb550c54.tar.xz
wireguard-openbsd-08e6074d7bbe9e0cc487d78c2f8c454fcb550c54.zip
fix false-positive "uninitialized" gcc warning
-rw-r--r--usr.bin/sndiod/sndiod.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/sndiod/sndiod.c b/usr.bin/sndiod/sndiod.c
index caf89f6ad9a..18aaeaf7e94 100644
--- a/usr.bin/sndiod/sndiod.c
+++ b/usr.bin/sndiod/sndiod.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sndiod.c,v 1.20 2015/12/23 12:20:24 ratchov Exp $ */
+/* $OpenBSD: sndiod.c,v 1.21 2015/12/23 12:24:12 ratchov Exp $ */
/*
* Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org>
*
@@ -475,9 +475,8 @@ main(int argc, char **argv)
wpw_gid = pw->pw_gid;
wpw_dir = xstrdup(pw->pw_dir);
} else {
- //hpw_uid = wpw_uid = 0;
- //hpw_gid = wpw_gid = 0;
- //wpw_dir = NULL;
+ hpw_uid = wpw_uid = hpw_gid = wpw_gid = 0xdeadbeef;
+ wpw_dir = NULL;
}
/* start subprocesses */