OSDN Git Service

builtin-blame.c: remove unneeded memclr()
authorJunio C Hamano <gitster@pobox.com>
Tue, 18 Dec 2007 09:46:04 +0000 (01:46 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Dec 2007 09:46:04 +0000 (01:46 -0800)
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-blame.c

index 99ea0a0..d98caaf 100644 (file)
@@ -125,7 +125,6 @@ static void origin_decref(struct origin *o)
        if (o && --o->refcnt <= 0) {
                if (o->file.ptr)
                        free(o->file.ptr);
-               memset(o, 0, sizeof(*o));
                free(o);
        }
 }