-
-
Notifications
You must be signed in to change notification settings - Fork 318
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
d.vect: Dereference after Null Check #4640
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a minor suggestion below. Also, please address CID 1270355 (and perhaps 1207713) here too.
display/d.vect/lines.c
Outdated
else { | ||
G_warning(_("Symbol is NULL; unable to display points")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for this else statement (with warning). The only situation Symb is NULL is if the call Symb = S_read(symbol_name);
in line 325 fails (in which case a warning is issued anyway).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Done. |
@ShubhamDesai When you'll have the chance, could you take a look at why there's multiple test failures across OSes? |
yes |
I still don't see where the -6 error comes from.. |
This pull request fixes issue identified by Coverity scan (CID : 1207395)
Changes Made: