From: Derrick Brashear Date: Wed, 1 May 2013 19:59:41 +0000 (-0400) Subject: pt_util: gcc warning fix X-Git-Tag: openafs-stable-1_8_0pre1~1163 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=13a3ba7ba2d660a08925a3ccd05d74eedcf8c5cd;hp=00b230d693fa501d11a6a6d45f65b5a09499ebbf pt_util: gcc warning fix 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 Reviewed-by: Jeffrey Altman --- diff --git a/src/ptserver/pt_util.c b/src/ptserver/pt_util.c index 1b953cd..2b6d35b 100644 --- a/src/ptserver/pt_util.c +++ b/src/ptserver/pt_util.c @@ -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)) {