summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0476228)
raw | patch | inline | side by side (parent: 0476228)
author | Sverre Rabbelier <srabbelier@gmail.com> | |
Sun, 28 Mar 2010 05:42:48 +0000 (00:42 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 28 Mar 2010 16:26:16 +0000 (09:26 -0700) |
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>
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 | patch | blob | history |
diff --git a/builtin-fast-export.c b/builtin-fast-export.c
index b0a4029c94d1bdb1c673fe604cdbfec93df875aa..c6dd71a7bcd0dfcb4691c9ca66a0c3a7bd4dcaae 100644 (file)
--- a/builtin-fast-export.c
+++ b/builtin-fast-export.c
f = fopen(file, "w");
if (!f)
- error("Unable to open marks file %s for writing.", file);
+ die_errno("Unable to open marks file %s for writing.", file);
for (i = 0; i < idnums.size; i++) {
if (deco->base && deco->base->type == 1) {