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:
34a92d0
)
zero-terminate returned array
author
Aleš Křenek
<ljocha@ics.muni.cz>
Wed, 26 Mar 2008 14:49:43 +0000
(14:49 +0000)
committer
Aleš Křenek
<ljocha@ics.muni.cz>
Wed, 26 Mar 2008 14:49:43 +0000
(14:49 +0000)
org.glite.lb.server/src/userjobs.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb.server/src/userjobs.c
b/org.glite.lb.server/src/userjobs.c
index
75fd992
..
e78e249
100644
(file)
--- a/
org.glite.lb.server/src/userjobs.c
+++ b/
org.glite.lb.server/src/userjobs.c
@@
-70,7
+70,7
@@
int edg_wll_UserJobsServer(
free(res); res = NULL;
}
- if (states) *states = calloc(njobs, sizeof(**states));
+ if (states) *states = calloc(njobs
+1
, sizeof(**states));
idx = 0;
for (i = 0; i < njobs; i++) {
if (edg_wll_JobStatusServer(ctx, out[idx], -1, &(*states)[idx]) != 0) {