]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
uninitialized-vars-20041013
authorJeffrey Altman <jaltman@mit.edu>
Wed, 13 Oct 2004 15:23:25 +0000 (15:23 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 13 Oct 2004 15:23:25 +0000 (15:23 +0000)
FIXES 15604

 initialize flags in SetFields so that it has a default value
 otherwise a runtime exception is generated on windows due to
 lack of initialization before use.

src/ptserver/pts.c

index dce5786e9f503e234b8583616d2cb236c37ad9fd..e33a2d961a790ea7d63ca7b5c93a037fb365ebe5 100644 (file)
@@ -853,7 +853,7 @@ SetFields(register struct cmd_syndesc *as)
     idlist ids;
     namelist names;
     int i;
-    afs_int32 mask, flags, ngroups, nusers;
+    afs_int32 mask, flags=0, ngroups, nusers;
 
     if (GetNameOrId(as, &ids, &names))
        return PRBADARG;