summaryrefslogtreecommitdiff
path: root/checkout-index.c
diff options
context:
space:
mode:
authorRene Scharfe <rene.scharfe@lsrfire.ath.cx>2006-04-02 11:13:01 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-04-02 19:58:46 (GMT)
commit5142db69123b9dd5605ee3e290409787675dd748 (patch)
treef03ef6f0e01d1ca68b62fad3d54cfdec7f21192d /checkout-index.c
parent139faba8f5c86a960c893f92e25afd4caa79c2fb (diff)
downloadgit-5142db69123b9dd5605ee3e290409787675dd748.zip
git-5142db69123b9dd5605ee3e290409787675dd748.tar.gz
git-5142db69123b9dd5605ee3e290409787675dd748.tar.bz2
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 7b78715..dd6a2d8 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];