Fix bmap commands not to parse empty flags argument as "revert"
Broken in commit a00f9e20
, v4.3.27.
This commit is contained in:
parent
1118f1c0ca
commit
150b2c5165
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ parse_map_flags(int bmap, char *str)
|
||||||
case 0: map_flags = 0;
|
case 0: map_flags = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!str)
|
if (!str || !*str)
|
||||||
return map_flags;
|
return map_flags;
|
||||||
|
|
||||||
/* special case "revert" */
|
/* special case "revert" */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue