Skip to content

Commit

Permalink
Check if args is set. Not set indicates no arguments exist for this c…
Browse files Browse the repository at this point in the history
…ommand.
  • Loading branch information
Rot127 committed Feb 12, 2024
1 parent 8d198b9 commit fdf20f8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions librz/core/cmd/cmd_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -2070,8 +2070,7 @@ RZ_API RzCmdDesc *rz_cmd_desc_group_new(RzCmd *cmd, RzCmdDesc *parent, const cha
}

RzCmdDesc *exec_cd = NULL;
if (cb && help) {
rz_return_val_if_fail(help->args, NULL);
if (cb && help && help->args) {
exec_cd = argv_new(cmd, res, name, cb, help, false);
if (!exec_cd) {
rz_cmd_desc_remove(cmd, res);
Expand Down

0 comments on commit fdf20f8

Please sign in to comment.