aboutsummaryrefslogtreecommitdiff
path: root/builtin/name-rev.c
diff options
context:
space:
mode:
authorThiago Farina <tfransosi@gmail.com>2010-08-28 23:04:17 -0300
committerJunio C Hamano <gitster@pobox.com>2010-08-29 22:42:49 -0700
commit3cd474599f1ede41863c523ddf76c94941b08164 (patch)
tree3ea9f6249e8c08a865f5d3b309d3c77e007c04d9 /builtin/name-rev.c
parent515cc0101943b766fde7aa894827119e332ec033 (diff)
downloadgit-3cd474599f1ede41863c523ddf76c94941b08164.tar.gz
git-3cd474599f1ede41863c523ddf76c94941b08164.tar.xz
object.h: Add OBJECT_ARRAY_INIT macro and make use of it.
Signed-off-by: Thiago Farina <tfransosi@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/name-rev.c')
-rw-r--r--builtin/name-rev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/name-rev.c b/builtin/name-rev.c
index 06a38ac8c..31f5c1c97 100644
--- a/builtin/name-rev.c
+++ b/builtin/name-rev.c
@@ -220,7 +220,7 @@ static void name_rev_line(char *p, struct name_ref_data *data)
int cmd_name_rev(int argc, const char **argv, const char *prefix)
{
- struct object_array revs = { 0, 0, NULL };
+ struct object_array revs = OBJECT_ARRAY_INIT;
int all = 0, transform_stdin = 0, allow_undefined = 1, always = 0;
struct name_ref_data data = { 0, 0, NULL };
struct option opts[] = {