X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=decorate.c;h=d9668d2ef94c73e4a7a5602011ff13a9fd9d8c6a;hb=92371226ac5bee99dc926c982f97d9d2280bd954;hp=23f6b0040f1cda9a550e5b1d90589fa4a7f76eb5;hpb=070739fd351702ea9bb4f65595728ae25a488075;p=git.git diff --git a/decorate.c b/decorate.c index 23f6b0040..d9668d2ef 100644 --- a/decorate.c +++ b/decorate.c @@ -37,10 +37,7 @@ static void grow_decoration(struct decoration *n) { int i; int old_size = n->size; - struct object_decoration *old_hash; - - old_size = n->size; - old_hash = n->hash; + struct object_decoration *old_hash = n->hash; n->size = (old_size + 1000) * 3 / 2; n->hash = xcalloc(n->size, sizeof(struct object_decoration));