diff options
Diffstat (limited to 'drivers/md/dm-table.c')
-rw-r--r-- | drivers/md/dm-table.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c index b6183eda8106..10c9439635ca 100644 --- a/drivers/md/dm-table.c +++ b/drivers/md/dm-table.c | |||
@@ -590,6 +590,12 @@ int dm_split_args(int *argc, char ***argvp, char *input) | |||
590 | unsigned array_size = 0; | 590 | unsigned array_size = 0; |
591 | 591 | ||
592 | *argc = 0; | 592 | *argc = 0; |
593 | |||
594 | if (!input) { | ||
595 | *argvp = NULL; | ||
596 | return 0; | ||
597 | } | ||
598 | |||
593 | argv = realloc_argv(&array_size, argv); | 599 | argv = realloc_argv(&array_size, argv); |
594 | if (!argv) | 600 | if (!argv) |
595 | return -ENOMEM; | 601 | return -ENOMEM; |