grep: recurse in-process using 'struct repository'
[gitweb.git] / server-info.c
index 6f865b73a3aa014a9cecb13dbf86dede70a02a59..5ec5b1d827a54486c83efc802ebc6eb1f40062c4 100644 (file)
@@ -133,7 +133,7 @@ static int read_pack_info_file(const char *infofile)
        char line[1000];
        int old_cnt = 0;
 
-       fp = fopen(infofile, "r");
+       fp = fopen_or_warn(infofile, "r");
        if (!fp)
                return 1; /* nonexistent is not an error. */