]> git.ipfire.org Git - thirdparty/git.git/blobdiff - ref-filter.c
Merge branch 'rs/xcalloc-takes-nelem-first'
[thirdparty/git.git] / ref-filter.c
index 643e69bda658070a54e71c35008cd51e5d690300..f0bd32f714168d03394a3313c1ac6af196d5202f 100644 (file)
@@ -772,7 +772,8 @@ static int if_atom_handler(struct atom_value *atomv, struct ref_formatting_state
                           struct strbuf *unused_err)
 {
        struct ref_formatting_stack *new_stack;
-       struct if_then_else *if_then_else = xcalloc(sizeof(struct if_then_else), 1);
+       struct if_then_else *if_then_else = xcalloc(1,
+                                                   sizeof(struct if_then_else));
 
        if_then_else->str = atomv->atom->u.if_then_else.str;
        if_then_else->cmp_status = atomv->atom->u.if_then_else.cmp_status;