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

Did you intend to use sizeof (tValuePair *) instead of sizeof (tValuePair **)? #9126

Open
Aries-Lee1991 opened this issue Dec 16, 2021 · 2 comments
Assignees
Labels
good first issue

Comments

@Aries-Lee1991
Copy link
Contributor

@Aries-Lee1991 Aries-Lee1991 commented Dec 16, 2021

in https://github.com/taosdata/TDengine/blob/develop/src/query/src/qAggMain.c, Passing argument pList of type tValuePair ** and argument 8 /* sizeof (tValuePair **) */ to function taosheapsort is suspicious. In this case, sizeof (tValuePair **) is equal to sizeof (tValuePair *).

image

You can use sizeof (tValuePair *) instead of sizeof (tValuePair **).

@Aries-Lee1991 Aries-Lee1991 added the good first issue label Dec 16, 2021
@lihongxing6
Copy link

@lihongxing6 lihongxing6 commented Dec 16, 2021

pick up challenge

@Aries-Lee1991
Copy link
Contributor Author

@Aries-Lee1991 Aries-Lee1991 commented Dec 16, 2021

pick up challenge

Assigned it to you.

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

No branches or pull requests

2 participants