mirror of
https://git.zx2c4.com/cgit
synced 2025-09-05 16:55:14 +00:00
shared: remove return value from cgit_free_commitinfo()
This return value is never used and the function always returns NULL. Signed-off-by: John Keeping <john@keeping.me.uk>
This commit is contained in:
3
shared.c
3
shared.c
@@ -95,7 +95,7 @@ struct cgit_repo *cgit_get_repoinfo(const char *url)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void *cgit_free_commitinfo(struct commitinfo *info)
|
||||
void cgit_free_commitinfo(struct commitinfo *info)
|
||||
{
|
||||
free(info->author);
|
||||
free(info->author_email);
|
||||
@@ -105,7 +105,6 @@ void *cgit_free_commitinfo(struct commitinfo *info)
|
||||
free(info->msg);
|
||||
free(info->msg_encoding);
|
||||
free(info);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
char *trim_end(const char *str, char c)
|
||||
|
Reference in New Issue
Block a user