git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b755298
)
Number of items instead of size to FetchRow (fixes a crash when building with -O2).
author
František Dvořák
<valtri@civ.zcu.cz>
Thu, 12 Jul 2012 10:39:26 +0000
(10:39 +0000)
committer
František Dvořák
<valtri@civ.zcu.cz>
Thu, 12 Jul 2012 10:39:26 +0000
(10:39 +0000)
org.glite.lb.server/src/jobstat.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb.server/src/jobstat.c
b/org.glite.lb.server/src/jobstat.c
index
b7de13e
..
06b19d3
100644
(file)
--- a/
org.glite.lb.server/src/jobstat.c
+++ b/
org.glite.lb.server/src/jobstat.c
@@
-200,7
+200,7
@@
int edg_wll_JobStatusServer(
edg_wll_SetError(ctx, ENOMEM, "edg_wll_JobStatusServer() calloc children_states failed!");
goto rollback;
}
- while ((num_f = edg_wll_FetchRow(ctx, sh, sizeof(out_stat), NULL, out_stat)) == 3
+ while ((num_f = edg_wll_FetchRow(ctx, sh, sizeof(out_stat)
/sizeof(out_stat[0])
, NULL, out_stat)) == 3
&& i < num_sub) {
if (!strcmp(INTSTAT_VERSION,out_stat[0])) {
js = dec_intJobStat(out_stat[1], &s_out);