-
Notifications
You must be signed in to change notification settings - Fork 211
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
Adding NULL to ptr when codec function failed. #253
Adding NULL to ptr when codec function failed. #253
Conversation
Signed-off-by: Cervenka Dusan <cervenka@acrios.com>
I suggest to add comment in the code explaining the reason behind putting value in the pointer, as it not trivial |
I think you wrote the word 'in' twice by mistake " 0 can be valid value or in in case of error." |
Signed-off-by: Cervenka Dusan <cervenka@acrios.com>
422dfc0
to
0db4341
Compare
HI @amgross , the last commit was related to your request with adding comment to code. |
@amgross what do you think about memcpy_s? |
@Hadatko I think memcpy_s will solve the issue. unfortunately it seems from the documentations that not all compilers includes this function. |
Signed-off-by: Cervenka Dusan <cervenka@acrios.com>
@amgross Thank you for your collaboration. @MichalPrincNXP likely ready. |
Thank you for the effort! |
Signed-off-by: Cervenka Dusan cervenka@acrios.com