all repos — cgit @ 1e25ac5b8fe0ca8760b2786b20d36013a6197e02

a hyperfast web frontend for git written in c

Remove dead initialization in cgit_parse_commit()

The value stored to "t" during its initialization gets overwritten in
any case, so just leave it uninitialized. Spotted by clang-analyzer.

Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Lukas Fleischer cgit@cryptocrack.de
Thu, 21 Jul 2011 23:04:53 +0200
commit

1e25ac5b8fe0ca8760b2786b20d36013a6197e02

parent

654ebb55d4e436ad145061ffb87111cbfcd88565

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M parsing.cparsing.c

@@ -125,7 +125,7 @@

struct commitinfo *cgit_parse_commit(struct commit *commit) { struct commitinfo *ret; - char *p = commit->buffer, *t = commit->buffer; + char *p = commit->buffer, *t; ret = xmalloc(sizeof(*ret)); ret->commit = commit;