Source-Changes-HG archive

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

[src/trunk]: src/bin/systrace Initialize ipid in two functions to NULL, to ap...



details:   https://anonhg.NetBSD.org/src/rev/d04daa15d92c
branches:  trunk
changeset: 581829:d04daa15d92c
user:      he <he%NetBSD.org@localhost>
date:      Tue Jun 07 09:00:18 2005 +0000

description:
Initialize ipid in two functions to NULL, to appease -Wuninitialized.
Marked with XXXGCC for dreamcast (found while compiling for it).

Reviewed (in slightly different form) by lukem.

diffstat:

 bin/systrace/systrace.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r 66bb96489dd2 -r d04daa15d92c bin/systrace/systrace.c
--- a/bin/systrace/systrace.c   Tue Jun 07 08:53:13 2005 +0000
+++ b/bin/systrace/systrace.c   Tue Jun 07 09:00:18 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: systrace.c,v 1.28 2004/01/21 22:50:56 kleink Exp $     */
+/*     $NetBSD: systrace.c,v 1.29 2005/06/07 09:00:18 he Exp $ */
 /*     $OpenBSD: systrace.c,v 1.32 2002/08/05 23:27:53 provos Exp $    */
 /*
  * Copyright 2002 Niels Provos <provos%citi.umich.edu@localhost>
@@ -163,6 +163,8 @@
        pid_t ppid;
        int dolog = 0;
 
+       ipid = NULL;    /* XXXGCC -Wuninitialized [dreamcast] */
+
        action = ICPOLICY_PERMIT;
 
        if (policynr == -1)
@@ -269,6 +271,8 @@
        short future;
        int len, off, dolog = 0;
 
+       ipid = NULL;    /* XXXGCC -Wuninitialized [dreamcast] */
+
        if (policynr == -1)
                goto out;
 



Home | Main Index | Thread Index | Old Index