mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 07:48:07 +00:00
Merge pull request #3058 from pacovn/Coverity_1399484_Dereference_null_return_value
tools: null check (Coverity 1399484)
This commit is contained in:
commit
a10f94506a
@ -39,7 +39,8 @@ int main(int argc, char *argv[])
|
|||||||
fprintf(stdout, USAGE "\n");
|
fprintf(stdout, USAGE "\n");
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
struct cmd_element *cmd = calloc(1, sizeof(struct cmd_element));
|
struct cmd_element *cmd = XCALLOC(MTYPE_TMP,
|
||||||
|
sizeof(struct cmd_element));
|
||||||
cmd->string = strdup(argv[1]);
|
cmd->string = strdup(argv[1]);
|
||||||
|
|
||||||
struct graph *graph = graph_new();
|
struct graph *graph = graph_new();
|
||||||
|
Loading…
Reference in New Issue
Block a user