1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

man-generator: ensure p is defined

In error path, p pointer could have been undefined.
This commit is contained in:
Zdenek Kabelac 2023-07-13 21:56:47 +02:00
parent 97fc0ca49b
commit 93484c2a62

View File

@ -376,7 +376,7 @@ static int _val_str_to_num(char *str)
static int _opt_str_to_num(struct command *cmd, char *str)
{
char long_name[MAX_LONG_OPT_NAME_LEN];
char *p;
char *p = NULL;
int i;
int first = 0, last = ARG_COUNT - 1, middle;