Skip to content

Commit ce1e846

Browse files
Ramsay Jonesjrn
authored andcommitted
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 <[email protected]> Signed-off-by: Jonathan Nieder <[email protected]>
1 parent 0b4dc66 commit ce1e846

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

refs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3235,7 +3235,7 @@ int update_ref(const char *action, const char *refname,
32353235
int flags, enum action_on_err onerr)
32363236
{
32373237
struct ref_lock *lock;
3238-
lock = update_ref_lock(refname, oldval, flags, 0, onerr);
3238+
lock = update_ref_lock(refname, oldval, flags, NULL, onerr);
32393239
if (!lock)
32403240
return 1;
32413241
return update_ref_write(action, refname, sha1, lock, onerr);

0 commit comments

Comments
 (0)