Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-10973 lutf: Fix crash and other updates
[fs/lustre-release.git]
/
lustre
/
tests
/
lutf
/
src
/
liblutf_agent.c
diff --git
a/lustre/tests/lutf/src/liblutf_agent.c
b/lustre/tests/lutf/src/liblutf_agent.c
index
ea35271
..
6597383
100644
(file)
--- a/
lustre/tests/lutf/src/liblutf_agent.c
+++ b/
lustre/tests/lutf/src/liblutf_agent.c
@@
-442,7
+442,6
@@
lutf_rc_t wait_for_agents(struct cYAML *agents, int timeout)
{
struct timeval start;
struct timeval now;
- struct cYAML *a;
bool found = false;
lutf_agent_blk_t *agent;
@@
-457,6
+456,8
@@
lutf_rc_t wait_for_agents(struct cYAML *agents, int timeout)
PDEBUG("Start waiting for Agents");
while (now.tv_sec - start.tv_sec < timeout && !found) {
+ struct cYAML *a = NULL;
+
found = true;
PDEBUG("Waiting for Agents");
while (cYAML_get_next_seq_item(agents, &a) != NULL) {