From 527b720c4ee44aa5babc088329569c96a1b5f03f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ale=C5=A1=20K=C5=99enek?= Date: Thu, 16 Mar 2006 16:51:25 +0000 Subject: [PATCH] attr_union(): terminate array with NULL --- org.glite.jp.primary/src/feed.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/org.glite.jp.primary/src/feed.c b/org.glite.jp.primary/src/feed.c index 17ebf30..ae60d8b 100644 --- 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; } -- 1.8.2.3