summaryrefslogtreecommitdiff
path: root/parallel/sge/patches/patch-daemons_common_procfs.c
blob: be997ee0d0ed2739ae6d7aadf75364b943a70989 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-daemons_common_procfs.c,v 1.1 2011/02/17 08:55:11 markd Exp $

--- source/daemons/common/procfs.c.orig	2006-03-10 06:03:19.000000000 +0000
+++ source/daemons/common/procfs.c
@@ -338,6 +338,8 @@ void procfs_kill_addgrpid(gid_t add_grp_
        * uids[3], gids[3] => FSUID and FSGID
        */
       groups = 0;
+	/* silence gcc's -Werror */
+      uids[0] = uids[1] = gids[0] = gids[1] = 0;
       while (fgets(buffer, sizeof(buffer), fp)) {
          char *label = NULL;
          char *token = NULL;