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:
733f571
)
don't coredump on emtpy lists
author
Aleš Křenek
<ljocha@ics.muni.cz>
Fri, 10 Oct 2008 12:42:13 +0000
(12:42 +0000)
committer
Aleš Křenek
<ljocha@ics.muni.cz>
Fri, 10 Oct 2008 12:42:13 +0000
(12:42 +0000)
org.glite.lb.server/src/lb_html.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb.server/src/lb_html.c
b/org.glite.lb.server/src/lb_html.c
index
ccb4ab4
..
d4bdb1f
100644
(file)
--- a/
org.glite.lb.server/src/lb_html.c
+++ b/
org.glite.lb.server/src/lb_html.c
@@
-58,7
+58,7
@@
int edg_wll_UserInfoToHTML(edg_wll_Context ctx UNUSED_VAR, edg_wlc_JobId *jobsOu
/* head */
pomB = strdup("");
- while (jobsOut[i]) {
+ while (jobsOut
&& jobsOut
[i]) {
char *chid = edg_wlc_JobIdUnparse(jobsOut[i]);
asprintf(&pomA,"%s\t\t <li> <a href=\"%s\">%s</a>\r\n",
@@
-74,7
+74,7
@@
int edg_wll_UserInfoToHTML(edg_wll_Context ctx UNUSED_VAR, edg_wlc_JobId *jobsOu
pomD = strdup("");
i = 0;
- while(notifids[i]){
+ while(notifids
&& notifids
[i]){
asprintf(&pomC, "%s\t\t <li> <a href=\"/notif/%s\">%s</a>\r\n",
pomD,
notifids[i],