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 <dotzenlabs@gmail.com>
This commit is contained in:
Mike Pape
2007-08-08 22:19:49 -04:00
parent 6bb4b679d6
commit 327005a9ef

View File

@@ -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;