Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/net/net ifix uninialized pid



details:   https://anonhg.NetBSD.org/src/rev/8d06ac78a999
branches:  trunk
changeset: 450434:8d06ac78a999
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Apr 14 01:45:30 2019 +0000

description:
ifix uninialized pid

diffstat:

 tests/net/net/t_unix.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 32fa0ae8eb86 -r 8d06ac78a999 tests/net/net/t_unix.c
--- a/tests/net/net/t_unix.c    Sat Apr 13 21:39:46 2019 +0000
+++ b/tests/net/net/t_unix.c    Sun Apr 14 01:45:30 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_unix.c,v 1.17 2018/02/17 20:16:18 christos Exp $     */
+/*     $NetBSD: t_unix.c,v 1.18 2019/04/14 01:45:30 christos Exp $     */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 #ifdef __RCSID
-__RCSID("$Id: t_unix.c,v 1.17 2018/02/17 20:16:18 christos Exp $");
+__RCSID("$Id: t_unix.c,v 1.18 2019/04/14 01:45:30 christos Exp $");
 #else
 #define getprogname() argv[0]
 #endif
@@ -140,6 +140,7 @@
        *pid = cred.unp_pid;
        return 0;
 #else
+       *pid = -1;
        return getpeereid(s, euid, egid);
 #endif
 }



Home | Main Index | Thread Index | Old Index