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

冗余代码? #1

Open
cazima opened this issue Jan 22, 2019 · 1 comment
Open

冗余代码? #1

cazima opened this issue Jan 22, 2019 · 1 comment

Comments

@cazima
Copy link

cazima commented Jan 22, 2019

htItem* htGet(char *key, htItem **ht) 函数中

if (strcmp(key, item->key_string) == 0){
return item;
tmp->fid = item->fid;
tmp->key_string = item->key_string;
return tmp;

这段话,前面已经return item了,后面的return tmp应该是冗余了吧

@cazima
Copy link
Author

cazima commented Jan 22, 2019

首先感谢作者的代码分享

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

1 participant