Code

merge-file: handle freopen() failure
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Fri, 26 Dec 2008 10:17:04 +0000 (11:17 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 27 Dec 2008 03:10:02 +0000 (19:10 -0800)
commit4deba8b7798aac52e33aa8e1c49a8cdc0940ac36
tree25d5ab9c855e6d37e352119ab86f3d215469b7ef
parent6720e95b305737fddc776f2904c339a0701e6ae2
merge-file: handle freopen() failure

Report the error if redirection of stderr to /dev/null failed.

This silences a compiler warning about ignoring the return value
of freopen() on Ubuntu 8.10.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-merge-file.c