1
0
mirror of https://github.com/git/git.git synced 2025-03-16 05:15:06 +00:00
git/compat
Erik Faye-Lund 1a4042096c mingw: do not crash on open(NULL, ...)
fetch_and_setup_pack_index() apparently pass a NULL-pointer to
parse_pack_index(), which in turn pass it to check_packed_git_idx(),
which again pass it to open(). Since open() already sets errno
correctly for the NULL-case, let's just avoid the problematic strcmp.

[PT: squashed in fix for fopen which was missed first time round]

Acked-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
2010-10-03 23:34:02 +01:00
..
2010-06-21 06:02:45 -07:00
2009-04-22 19:03:39 -07:00
2008-09-30 14:30:06 -07:00
2009-03-02 18:28:06 -08:00
2010-10-03 23:34:02 +01:00
2009-09-18 20:00:42 -07:00
2010-08-14 19:35:38 -07:00
2009-09-18 20:00:42 -07:00