]> git.ipfire.org Git - thirdparty/git.git/commit - refs.c
pseudoref: check return values from read_ref()
authorDavid Turner <dturner@twopensource.com>
Wed, 15 Jul 2015 22:05:28 +0000 (18:05 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 11 Aug 2015 22:52:20 +0000 (15:52 -0700)
commit2c3aed1381f22494bc06fd66dec8292a296db10f
tree049b6b12c404c8b6cf49550afc5b364c49fae8a8
parentd96a53996b6c02b96a9a2b4eed9eac4e9d661a38
pseudoref: check return values from read_ref()

These codepaths attempt to compare the "expected" current value with
the actual current value, but did not check if we successfully read
the current value before comparison.

Signed-off-by: David Turner <dturner@twopensource.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c