From 327005a9ef9c3b784e4742cece0710de6a549313 Mon Sep 17 00:00:00 2001 From: Mike Pape Date: Wed, 8 Aug 2007 22:19:49 -0400 Subject: [PATCH] Returning -1 does not fail like it should in MSys. We need to return 1 rather than -1 on failure since -1 does not seem to signal an error in MSys. Signed-off-by: Mike Pape --- config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.c b/config.c index bbc5d34e5a..977115a6e9 100644 --- a/config.c +++ b/config.c @@ -436,7 +436,7 @@ int git_config_from_file(config_fn_t fn, const char *filename) int ret; FILE *f = fopen(filename, "r"); - ret = -1; + ret = 1; if (f) { config_file = f; config_file_name = filename;