]> git.ipfire.org Git - thirdparty/git.git/blobdiff - unpack-trees.c
introduce CHECKOUT_INIT
[thirdparty/git.git] / unpack-trees.c
index 3db3f02577a432ddec187873397e63e4c9f5af3e..ea6bdd20e0491554e88f4b84bd3b6354867021bc 100644 (file)
@@ -1094,12 +1094,10 @@ int unpack_trees(unsigned len, struct tree_desc *t, struct unpack_trees_options
        int i, ret;
        static struct cache_entry *dfc;
        struct exclude_list el;
-       struct checkout state;
+       struct checkout state = CHECKOUT_INIT;
 
        if (len > MAX_UNPACK_TREES)
                die("unpack_trees takes at most %d trees", MAX_UNPACK_TREES);
-       memset(&state, 0, sizeof(state));
-       state.base_dir = "";
        state.force = 1;
        state.quiet = 1;
        state.refresh_cache = 1;