Signed-off-by: Thiago Farina <tfransosi@xxxxxxxxx> --- builtin/rm.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/builtin/rm.c b/builtin/rm.c index c7b7bb3..faeedfc 100644 --- a/builtin/rm.c +++ b/builtin/rm.c @@ -22,10 +22,7 @@ static struct { static void add_list(const char *name) { - if (list.nr >= list.alloc) { - list.alloc = alloc_nr(list.alloc); - list.name = xrealloc(list.name, list.alloc * sizeof(const char *)); - } + ALLOC_GROW(list.name, list.nr + 1, list.alloc); list.name[list.nr++] = name; } -- 1.7.3.2.343.g7d43d -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html