Skip to content

Commit

Permalink
Compiler warning: NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
olofhagsand committed Sep 18, 2024
1 parent f5a64a5 commit 9765545
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controller_cli_callbacks.c
Original file line number Diff line number Diff line change
Expand Up @@ -2416,7 +2416,7 @@ show_yang_revisions(clixon_handle h,
(cvname = cv_string_get(cvec_i(argv, 0))) != NULL) {
if ((cv = cvec_find(cvv, cvname)) != NULL){
if ((name = cv_string_get(cv)) == NULL){
clixon_err(OE_PLUGIN, EINVAL, "cv %s empty", name);
clixon_err(OE_PLUGIN, EINVAL, "cv name is empty");
goto done;
}
}
Expand Down Expand Up @@ -2509,7 +2509,7 @@ show_device_capability(clixon_handle h,
(cvname = cv_string_get(cvec_i(argv, 0))) != NULL) {
if ((cv = cvec_find(cvv, cvname)) != NULL){
if ((name = cv_string_get(cv)) == NULL){
clixon_err(OE_PLUGIN, EINVAL, "cv %s empty", name);
clixon_err(OE_PLUGIN, EINVAL, "cv name is empty");
goto done;
}
}
Expand Down

0 comments on commit 9765545

Please sign in to comment.