rollback_lock_file(): do not clear filename redundantly
commit5527d5349b42aeb2ea36edfd2d55016f22fefc08
authorMichael Haggerty <mhagger@alum.mit.edu>
Wed, 1 Oct 2014 10:28:08 +0000 (1 12:28 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Oct 2014 20:38:39 +0000 (1 13:38 -0700)
tree9a5d552ad131f9b650f6fe796991854068dd10e8
parent419f0c0f681b76d720699977abe03d29e22db554
rollback_lock_file(): do not clear filename redundantly

It is only necessary to clear the lock_file's filename field if it was
not already clear.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Reviewed-by: Ronnie Sahlberg <sahlberg@google.com>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
lockfile.c