]> git.cameronkatri.com Git - cgit.git/blobdiff - scan-tree.c
Merge branch 'dm/disable-clone'
[cgit.git] / scan-tree.c
index 627af1b23240dbb8401d61d8e897afaf0eb05ca4..e5a4baf556e0525f8493c6b2857ef913972c85c2 100644 (file)
@@ -219,6 +219,7 @@ void scan_projects(const char *path, const char *projectsfile, repo_config_fn fn
        if (!projects) {
                fprintf(stderr, "Error opening projectsfile %s: %s (%d)\n",
                        projectsfile, strerror(errno), errno);
+               return;
        }
        while (fgets(line, sizeof(line), projects) != NULL) {
                for (z = &lastc(line);