summaryrefslogtreecommitdiff
path: root/checkout-index.c
diff options
context:
space:
mode:
authorRene Scharfe <rene.scharfe@lsrfire.ath.cx>2006-04-02 13:13:01 +0200
committerJunio C Hamano <junkio@cox.net>2006-04-02 12:58:46 -0700
commit5142db69123b9dd5605ee3e290409787675dd748 (patch)
treef03ef6f0e01d1ca68b62fad3d54cfdec7f21192d /checkout-index.c
parent139faba8f5c86a960c893f92e25afd4caa79c2fb (diff)
downloadgit-5142db69123b9dd5605ee3e290409787675dd748.tar.gz
Fix sparse warnings about usage of 0 instead of NULL
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'checkout-index.c')
-rw-r--r--checkout-index.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/checkout-index.c b/checkout-index.c
index 7b78715417..dd6a2d86fe 100644
--- a/checkout-index.c
+++ b/checkout-index.c
@@ -133,7 +133,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];