fast-export: don't segfault when marks file cannot be opened
commitbb6ad28c23f05e1ea04e3f1c6b9b08cc070c5318
authorSverre Rabbelier <srabbelier@gmail.com>
Sun, 28 Mar 2010 05:42:48 +0000 (28 00:42 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sun, 28 Mar 2010 16:26:16 +0000 (28 09:26 -0700)
tree5100e323dca019e8870cb3e86c20610e42aeebde
parent0476228de500049804ae599f557658c3f9042ad0
fast-export: don't segfault when marks file cannot be opened

The error function only prints an error message, resulting in a
segfault if we later on try to fprintf to a NULL handle.

Fix this by using die_errno instead.

Signed-off-by: Sverre Rabbelier <srabbelier@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-fast-export.c