Skip to content

Commit

Permalink
Fix: crm_ticket: avoid unnecessary issues with dynamic allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
wenningerk committed May 18, 2020
1 parent 0d44087 commit 98a986a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/crm_ticket.c
Expand Up @@ -41,8 +41,8 @@ const char *attr_value = NULL;
const char *attr_id = NULL;
const char *set_name = NULL;
const char *attr_default = NULL;
const char *xml_file = NULL;
char ticket_cmd = 'S';
char *xml_file = NULL;
int cib_options = cib_sync_call;

static pe_ticket_t *
Expand Down Expand Up @@ -812,7 +812,7 @@ main(int argc, char **argv)
do_force = TRUE;
break;
case 'x':
xml_file = strdup(optarg);
xml_file = optarg;
break;
case 'n':
set_name = optarg;
Expand Down

0 comments on commit 98a986a

Please sign in to comment.