Skip to content

Commit

Permalink
Merge pull request wangzheng0822#225 from sty945/master
Browse files Browse the repository at this point in the history
翻转单链表头结点没有初始化
  • Loading branch information
wangzheng0822 authored Jan 14, 2019
2 parents 04d8cdb + adcbdda commit cae28a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@

# Java rate limiting library/framework
# https://github.com/wangzheng0822/ratelimiter4j

2 changes: 1 addition & 1 deletion c-cpp/06_linkedlist/single_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit cae28a8

Please sign in to comment.