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

base64: fix cppcheck warnings #819

Merged
merged 1 commit into from
May 21, 2023
Merged

base64: fix cppcheck warnings #819

merged 1 commit into from
May 21, 2023

Conversation

sreimers
Copy link
Member

@sreimers sreimers commented May 20, 2023

Fixes:

src/base64/b64.c:188:26: warning: Either the condition '!in' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantC
heck]                        
 const char *in_end = in + ilen;
                         ^ 
src/base64/b64.c:191:6: note: Assuming that condition '!in' is not redundant
 if (!in || !out || !olen)                                                    
     ^  
src/base64/b64.c:188:26: note: Null pointer addition
 const char *in_end = in + ilen;                                              
                         ^

@sreimers sreimers merged commit d5099c4 into main May 21, 2023
@sreimers sreimers deleted the base64_cppcheck branch May 21, 2023 08:10
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

Successfully merging this pull request may close these issues.

1 participant