X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=checkout-index.c;h=e56c354f8c44e9fc06acea7c4b2673b46f2a3a0b;hb=b6c4a480b3161effaa3578df91d8cdc83044d7b6;hp=7b78715417039fe1d43699270cdc3d5adf6d2e9c;hpb=2593a410e095f89f0eef40edb90b39029574462b;p=git.git diff --git a/checkout-index.c b/checkout-index.c index 7b787154..e56c354f 100644 --- a/checkout-index.c +++ b/checkout-index.c @@ -39,6 +39,7 @@ #include "cache.h" #include "strbuf.h" #include "quote.h" +#include "cache-tree.h" #define CHECKOUT_ALL 4 static const char *prefix; @@ -133,7 +134,7 @@ static int checkout_file(const char *name) static int checkout_all(void) { int i, errs = 0; - struct cache_entry* last_ce = 0; + struct cache_entry* last_ce = NULL; for (i = 0; i < active_nr ; i++) { struct cache_entry *ce = active_cache[i];