diff options
author | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | 2013-10-06 21:49:18 +0100 |
---|---|---|
committer | Jonathan Nieder <jrnieder@gmail.com> | 2013-10-14 16:10:50 -0700 |
commit | ce1e8462070868bd83f9bc79f90f62d6927f8332 (patch) | |
tree | 7586e38a931d4502f554bc45453ca5ad5499c404 /refs.c | |
parent | 0b4dc66169da5040951c6f575978c4b962934f94 (diff) | |
download | git-ce1e8462070868bd83f9bc79f90f62d6927f8332.tar.gz |
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 <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Diffstat (limited to 'refs.c')
-rw-r--r-- | refs.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |