Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
refs.c: spell NULL pointer as NULL
author
Ramsay Jones
<ramsay@ramsay1.demon.co.uk>
Sun, 6 Oct 2013 20:49:18 +0000
(21:49 +0100)
committer
Jonathan Nieder
<jrnieder@gmail.com>
Mon, 14 Oct 2013 23:10:50 +0000
(16:10 -0700)
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>
refs.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
0b4dc66
)
diff --git
a/refs.c
b/refs.c
index ad5d66c8c95ca7e10b020da05b1d11157cee7af2..3710748ab88d8fa4639c3a0a436ca0e2b0c25552 100644
(file)
--- 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);