Initialize chunker fd to -1, so it's not equal to STDIN_FILENO (0)

This commit is contained in:
Alan Jenkins 2015-08-20 15:55:12 +01:00
parent d3d78f7ae3
commit 7c6f3ece66
1 changed files with 1 additions and 0 deletions

View File

@ -96,6 +96,7 @@ chunker_init(int window_size, int chunk_mask, int min_size, int max_size, uint32
c->table = buzhash_init_table(seed);
c->buf_size = max_size;
c->data = malloc(c->buf_size);
c->fh = -1;
return c;
}