]> gitweb.ps.run Git - ps-cgit/commitdiff
Merge branch 'stable'
authorLars Hjemli <hjemli@gmail.com>
Tue, 18 Aug 2009 15:21:52 +0000 (17:21 +0200)
committerLars Hjemli <hjemli@gmail.com>
Tue, 18 Aug 2009 15:21:52 +0000 (17:21 +0200)
1  2 
ui-repolist.c

diff --combined ui-repolist.c
index 25f076fd3198cac33bca32dcceea423e4d9af30c,3aedde5456f761fe58926bfef7e28f389975aa41..6d2f93ffc05444b4ca34c17632c5f4f05e6a347d
@@@ -23,6 -23,7 +23,7 @@@ time_t read_agefile(char *path
  
        if (!(f = fopen(path, "r")))
                return -1;
+       buf[0] = 0;
        if (fgets(buf, sizeof(buf), f) == NULL)
                return -1;
        fclose(f);
@@@ -273,11 -274,6 +274,11 @@@ void cgit_print_repolist(
  
  void cgit_print_site_readme()
  {
 -      if (ctx.cfg.root_readme)
 -              html_include(ctx.cfg.root_readme);
 +      if (!ctx.cfg.root_readme)
 +              return;
 +      if (ctx.cfg.about_filter)
 +              cgit_open_filter(ctx.cfg.about_filter);
 +      html_include(ctx.cfg.root_readme);
 +      if (ctx.cfg.about_filter)
 +              cgit_close_filter(ctx.cfg.about_filter);
  }