Permalink
Browse files

Fix compile error using GCC 4.6.

  • Loading branch information...
takeshitakenji committed Apr 30, 2011
1 parent 1fe7783 commit 64abc2f4a3678abf9e1b6962e6eb2ef1c0bcd945
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/bup/_helpers.c
View
@@ -369,7 +369,7 @@ static PyObject *merge_into(PyObject *self, PyObject *args)
{
PyObject *ilist = NULL;
unsigned char *fmap = NULL;
- struct sha *sha_ptr, *sha_start, *last = NULL;
+ struct sha *sha_ptr, *sha_start = NULL;
uint32_t *table_ptr, *name_ptr, *name_start;
struct idx **idxs = NULL;
int flen = 0, bits = 0, i;
@@ -418,7 +418,6 @@ static PyObject *merge_into(PyObject *self, PyObject *args)
table_ptr[prefix++] = htonl(count);
memcpy(sha_ptr++, idx->cur, sizeof(struct sha));
*name_ptr++ = htonl(_get_idx_i(idx));
- last = idx->cur;
++idx->cur;
if (idx->cur_name != NULL)
++idx->cur_name;

0 comments on commit 64abc2f

Please sign in to comment.