diff options
-rw-r--r-- | src/diff.c | 2 | ||||
-rw-r--r-- | src/util.c | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -209,6 +209,8 @@ static int enumerate(DB *ddb, struct syrep_db_context *c1, struct syrep_db_conte if (meta->last_seen != c1->version) continue; + memset(&name, 0, sizeof(name)); + if ((f = get_name_by_nrecno(c1, &id->nrecno, &name)) < 0) return -1; @@ -495,7 +495,7 @@ int copy_or_link_file(const char *src, const char *dst, int c) { if (errno == EXDEV || errno == EPERM) return copy_file(src, dst, c); - fprintf(stderr, "link(%s, %s): %s\n", src, dst, strerror(errno)); +/* fprintf(stderr, "link(%s, %s): %s\n", src, dst, strerror(errno)); */ return -1; } |