Commit 1bc209b4 authored by Martin Pool's avatar Martin Pool

Fix completely braindead previous patch. Thanks Jos.

parent 1433e6da
......@@ -405,14 +405,14 @@ void write_batch_csum_info(int *flist_entry, int flist_count,
struct sum_struct *s)
{
size_t i;
size_t int_count;
int int_count;
extern int csum_length;
fdb_open = 1;
write_batch_csums_file(flist_entry, sizeof(int));
int_count = s->count;
write_batch_csums_file(&int_count, int_count);
int_count = s ? (int) s->count : 0;
write_batch_csums_file(&int_count, sizeof int_count);
if (s) {
for (i = 0; i < s->count; i++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment