]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
pt_util: gcc warning fix
authorDerrick Brashear <shadow@your-file-system.com>
Wed, 1 May 2013 19:59:41 +0000 (15:59 -0400)
committerJeffrey Altman <jaltman@your-file-system.com>
Sat, 11 May 2013 15:41:40 +0000 (08:41 -0700)
it's claimed these are not initialized before use.
squelch compiler errors. has to be in parent as otherwise
we will zero them in our loop where we potentially want the
parent group id, which is not on "this" line as we add members.

Change-Id: I3014765ad1935cbe20421560329b5bdf465db8af
Reviewed-on: http://gerrit.openafs.org/9840
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
src/ptserver/pt_util.c

index 1b953cda753b252ce33784e81e0a0e7a156b7d2c..2b6d35bb8b4a678417c5921eb3fcf16da8663b5f 100644 (file)
@@ -236,10 +236,10 @@ CommandProc(struct cmd_syndesc *a_as, void *arock)
 
     if (wflag) {
        struct usr_list *u;
-       int seenGroup = 0;
+       int seenGroup = 0, id = 0, flags = 0;
 
        while (fgets(buffer, sizeof(buffer), dfp)) {
-           int id, oid, cid, flags, quota, uid;
+           int oid, cid, quota, uid;
            char name[PR_MAXNAMELEN], mem[PR_MAXNAMELEN];
 
            if (isspace(*buffer)) {