summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/diff.c2
-rw-r--r--src/util.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/diff.c b/src/diff.c
index b2d33a7..7f97ba7 100644
--- a/src/diff.c
+++ b/src/diff.c
@@ -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;
diff --git a/src/util.c b/src/util.c
index a8b55af..4eebd1a 100644
--- a/src/util.c
+++ b/src/util.c
@@ -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;
}