uninitialized-20040417
authorJeffrey Altman <jaltman@mit.edu>
Sun, 18 Apr 2004 04:16:14 +0000 (04:16 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sun, 18 Apr 2004 04:16:14 +0000 (04:16 +0000)
ngroups was uninitialized.  This produced a run-time warning even
though its value was never used in subsequent calls.  set to 0.

src/ptserver/pts.c

index ef9927a..443b7fa 100644 (file)
@@ -872,6 +872,8 @@ SetFields(as)
 
     mask = 0;
     nusers = 0;
+    ngroups = 0;
+
     if (as->parms[1].items) {  /* privacy bits */
        char *access = as->parms[1].items->data;
        int new;