X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=checkout-index.c;h=e56c354f8c44e9fc06acea7c4b2673b46f2a3a0b;hb=c9a11205f73d7d39aab8b70169d73948d4a9f04f;hp=7b78715417039fe1d43699270cdc3d5adf6d2e9c;hpb=6013f17d8852c4b6365e143422e7a85f88efc492;p=git.git diff --git a/checkout-index.c b/checkout-index.c index 7b7871541..e56c354f8 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];