From ce1e8462070868bd83f9bc79f90f62d6927f8332 Mon Sep 17 00:00:00 2001 From: Ramsay Jones Date: Sun, 6 Oct 2013 21:49:18 +0100 Subject: refs.c: spell NULL pointer as NULL A call to update_ref_lock() passes '0' to the 'int *type_p' parameter. Noticed by sparse. ("Using plain integer as NULL pointer") Signed-off-by: Ramsay Jones Signed-off-by: Jonathan Nieder --- refs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/refs.c b/refs.c index ad5d66c8c9..3710748ab8 100644 --- a/refs.c +++ b/refs.c @@ -3235,7 +3235,7 @@ int update_ref(const char *action, const char *refname, int flags, enum action_on_err onerr) { struct ref_lock *lock; - lock = update_ref_lock(refname, oldval, flags, 0, onerr); + lock = update_ref_lock(refname, oldval, flags, NULL, onerr); if (!lock) return 1; return update_ref_write(action, refname, sha1, lock, onerr); -- cgit v1.2.3