Merge pull request #225 from sty945/master

翻转单链表头结点没有初始化
This commit is contained in:
wangzheng0822 2019-01-14 10:54:35 +08:00 committed by GitHub
commit cae28a8e67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -3,3 +3,4 @@
# Java rate limiting library/framework
# https://github.com/wangzheng0822/ratelimiter4j

View File

@ -74,7 +74,7 @@ struct single_list** search(struct single_list_head* head, int target)
void reverse(struct single_list_head* head)
{
struct single_list_head tmp;
struct single_list_head tmp = {NULL};
struct single_list *elem;
while (!is_empty(head)) {