branch: fix segfault when resolving an invalid HEAD
commit078f8380f65acfdffee077a642e982453277873a
authorJonas Fonseca <fonseca@diku.dk>
Sun, 20 May 2007 12:19:17 +0000 (20 14:19 +0200)
committerJunio C Hamano <junkio@cox.net>
Sun, 20 May 2007 21:39:16 +0000 (20 14:39 -0700)
treebb9be48e03ab0a6bb71336af32dc99429a2da351
parentf7b47b273ed2c9e9b298c4f5dd02884b46dfbced
branch: fix segfault when resolving an invalid HEAD

Caused by return value of resolve_ref being passed directly
to xstrdup whereby the sanity checking was never reached.

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-branch.c