Skip to content

Commit

Permalink
chore(agent): fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
hahuja2 committed Mar 29, 2024
1 parent 1fb5879 commit e94e897
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions agent/fw_support.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ void nr_fw_support_add_package_supportability_metric(
}
}

if ('\0' == major_version[0] && '\0' == package_version[0]) {
return;
} else {
if ('\0' == major_version[0] && '\0' != package_version[0]) {
strncpy(major_version, package_version, 1);
major_version[1] = '\0';
}
Expand Down

0 comments on commit e94e897

Please sign in to comment.