summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2015-12-23 12:24:13 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2015-12-23 12:24:13 +0000
commitbf913f16411c5d7389fe3e890fb3cd5113b29c8b (patch)
treee788473e8451f3f3d8bc673a60dbe92e4cbc89ba
parent1e874fa4b00af5517fdd384195b32ad93a5c1471 (diff)
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 */