~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
debian/source/format: Apparently I have to have one of these now.
[catacomb]
/
progs
/
hashsum.c
diff --git
a/progs/hashsum.c
b/progs/hashsum.c
index
8cc1926
..
df1fdae
100644
(file)
--- a/
progs/hashsum.c
+++ b/
progs/hashsum.c
@@
-90,7
+90,7
@@
static int warnjunk(const char *path, const struct stat *st, void *p)
static int checkhash(fhashstate *fh, const char *file, const encodeops *e)
{
static int checkhash(fhashstate *fh, const char *file, const encodeops *e)
{
- int rc;
+ int rc
= 0
;
hfpctx hfp;
dstr dl = DSTR_INIT;
dstr df = DSTR_INIT;
hfpctx hfp;
dstr dl = DSTR_INIT;
dstr df = DSTR_INIT;
@@
-116,6
+116,7
@@
static int checkhash(fhashstate *fh, const char *file, const encodeops *e)
case HF_HASH:
xfree(hfp.hbuf);
hfp.hbuf = xmalloc(2 * hfp.gch->hashsz);
case HF_HASH:
xfree(hfp.hbuf);
hfp.hbuf = xmalloc(2 * hfp.gch->hashsz);
+ fh->gch = hfp.gch;
break;
case HF_FILE:
if (fhash(fh, df.buf, hfp.hbuf + hfp.gch->hashsz)) {
break;
case HF_FILE:
if (fhash(fh, df.buf, hfp.hbuf + hfp.gch->hashsz)) {