]> 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)
committerStephan Wiesand <stephan.wiesand@desy.de>
Wed, 29 Jan 2014 19:22:30 +0000 (11:22 -0800)
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.

Reviewed-on: http://gerrit.openafs.org/9840
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
(cherry picked from commit 13a3ba7ba2d660a08925a3ccd05d74eedcf8c5cd)

Change-Id: I71b968a8ef0751f6e80633e8051fdfb4a17cfd8d
Reviewed-on: http://gerrit.openafs.org/10738
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/ptserver/pt_util.c

index 16dc72344416a22f176b752753aa82cb7a43936d..5e377bda214d874e7af09e16ec9dbf366f16d3e4 100644 (file)
@@ -242,9 +242,10 @@ CommandProc(struct cmd_syndesc *a_as, void *arock)
 
     if (wflag) {
        struct usr_list *u;
+       int 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)) {