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:
f07ea6b
)
attr_union(): terminate array with NULL
author
Aleš Křenek
<ljocha@ics.muni.cz>
Thu, 16 Mar 2006 16:51:25 +0000
(16:51 +0000)
committer
Aleš Křenek
<ljocha@ics.muni.cz>
Thu, 16 Mar 2006 16:51:25 +0000
(16:51 +0000)
org.glite.jp.primary/src/feed.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.jp.primary/src/feed.c
b/org.glite.jp.primary/src/feed.c
index
17ebf30
..
ae60d8b
100644
(file)
--- a/
org.glite.jp.primary/src/feed.c
+++ b/
org.glite.jp.primary/src/feed.c
@@
-252,6
+252,8
@@
static void attr_union(char **a, char **b, char ***c)
if (j < cnt && j > i+1) memmove(out+i+1,out+j,(cnt-j) * sizeof *out);
cnt -= j-i-1;
}
+ assert(cnt);
+ out[cnt-1] = NULL;
*c = out;
}