compat/setenv.c: update errno when erroring out
commit57590c72b4d3b02e32732c7d79514c0281d6c2b5
authorErik Faye-Lund <kusmabite@gmail.com>
Wed, 14 Dec 2011 14:07:08 +0000 (14 15:07 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Dec 2011 03:30:41 +0000 (14 19:30 -0800)
treec2defaec51ac733b75adfed58d91b3072863c2c4
parent10dd3b2bf1444695416c0dac951297acf7d4e5e4
compat/setenv.c: update errno when erroring out

Previously, gitsetenv didn't update errno as it should when
erroring out. Fix this.

Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/setenv.c