Skip to content

Commit

Permalink
Fix segmentation fault for dropstats and vrmemstats utilities.
Browse files Browse the repository at this point in the history
Change-Id: I3e18ac24f74ceece378c2f8abe9e19a2d05e150c
Closes-Bug: #1679489
  • Loading branch information
krharsh committed Apr 4, 2017
1 parent b1fee00 commit c34e734
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion utils/dropstats.c
Expand Up @@ -209,7 +209,7 @@ static struct option long_options[] = {
[HELP_OPT_INDEX] = {"help", no_argument, &help_set, 1},
[CORE_OPT_INDEX] = {"core", required_argument, &core_set, 1},
[OFFL_OPT_INDEX] = {"offload", no_argument, &offload_set, 1},
[MAX_OPT_INDEX] = {"NULL", 0, 0, 0},
[MAX_OPT_INDEX] = {NULL, 0, 0, 0},
};

static void
Expand Down
2 changes: 1 addition & 1 deletion utils/vrmemstats.c
Expand Up @@ -183,7 +183,7 @@ enum opt_index {

static struct option long_options[] = {
[HELP_OPT_INDEX] = {"help", no_argument, &help_set, 1},
[MAX_OPT_INDEX] = {"NULL", 0, 0, 0},
[MAX_OPT_INDEX] = {NULL, 0, 0, 0},
};

static void
Expand Down

0 comments on commit c34e734

Please sign in to comment.