git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
1b98b43
)
dafs-state-analyzer-setup-cursor-20080630
author
Tom Keiser
<tkeiser@sinenomine.net>
Mon, 30 Jun 2008 18:28:35 +0000 (18:28 +0000)
committer
Derrick Brashear
<shadow@dementia.org>
Mon, 30 Jun 2008 18:28:35 +0000 (18:28 +0000)
LICENSE IPL10
avoid an uninitialized cursor
src/tviced/state_analyzer.c
patch
|
blob
|
history
diff --git
a/src/tviced/state_analyzer.c
b/src/tviced/state_analyzer.c
index
1919030
..
7469e08
100644
(file)
--- a/
src/tviced/state_analyzer.c
+++ b/
src/tviced/state_analyzer.c
@@
-1827,6
+1827,12
@@
get_fe(afs_uint32 idx)
static int
get_fe_hdr(void)
{
+ if (!fe_cursor.cursor) {
+ if(get_fe(fe_cursor.idx)) {
+ return 1;
+ }
+ }
+
memcpy(&fe_cursor.hdr, fe_cursor.cursor, sizeof(struct callback_state_entry_header));
fe_cursor.hdr_valid = 1;
return 0;