git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
33809f6
)
uninitialized-vars-20041013
author
Jeffrey Altman
<jaltman@mit.edu>
Wed, 13 Oct 2004 15:23:25 +0000 (15:23 +0000)
committer
Jeffrey 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
patch
|
blob
|
history
diff --git
a/src/ptserver/pts.c
b/src/ptserver/pts.c
index
dce5786
..
e33a2d9
100644
(file)
--- a/
src/ptserver/pts.c
+++ b/
src/ptserver/pts.c
@@
-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;