Code

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 99ea0a02cb39bb72b39f147e75a2aa3850bfe3d2..d98caaf2171a9e91c44f47a8519446546b3b02b8 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);
        }
 }