Skip to content

Commit

Permalink
Fix null check of argument in app_utils_get_error_code_strings()
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Berg authored and hefloryd committed Mar 30, 2023
1 parent a55fce3 commit 13a11a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion samples/pn_dev/app_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ void app_utils_get_error_code_strings (
const char ** err_cls_str,
const char ** err_code_str)
{
if (err_cls_str == NULL || err_cls_str == NULL)
if (err_cls_str == NULL || err_code_str == NULL)
{
return;
}
Expand Down
2 changes: 1 addition & 1 deletion samples/pn_dev_lan9662/app_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ void app_utils_get_error_code_strings (
const char ** err_cls_str,
const char ** err_code_str)
{
if (err_cls_str == NULL || err_cls_str == NULL)
if (err_cls_str == NULL || err_code_str == NULL)
{
return;
}
Expand Down

0 comments on commit 13a11a7

Please sign in to comment.