]> arthur.barton.de Git - bup.git/commitdiff
Fix compile error using GCC 4.6.
authorNeil E. Hodges <47hasbegun@gmail.com>
Sat, 30 Apr 2011 20:15:36 +0000 (13:15 -0700)
committerNeil E. Hodges <47hasbegun@gmail.com>
Sat, 30 Apr 2011 20:15:36 +0000 (13:15 -0700)
lib/bup/_helpers.c

index 61b73f7c11a155e797f2d0febffea7b22e50abdf..54246436e847a889a5bab83e0b4cf6a7bfc8fcf6 100644 (file)
@@ -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;