Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

single_list.c #59

Open
ty1836 opened this issue Oct 13, 2018 · 2 comments
Open

single_list.c #59

ty1836 opened this issue Oct 13, 2018 · 2 comments

Comments

@ty1836
Copy link

ty1836 commented Oct 13, 2018

在反转的时候 新的头节点(tmp)没有初始化,导致在反转后dump时 会出错 初始化后就可以修复了

@RichardWeiYang
Copy link
Contributor

Reasonable, you could make a pull request to fix this.

@phantasy1012
Copy link

tmp初始化了也不对吧 ?
tmp是局部变量,翻转函数执行完后,tmp的生命期就结束了,占用的内存随时会被改写。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants