mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-16 05:10:03 +01:00
fix potential null pointer dereference.
Signed-off-by: wangzhiqiang <wangzhiqiang95@huawei.com>
This commit is contained in:
@@ -3439,6 +3439,9 @@ int main(int argc, const char **argv)
|
||||
textdomain(PACKAGE);
|
||||
|
||||
popt_context = poptGetContext(PACKAGE, argc, argv, popt_options, 0);
|
||||
if (!popt_context)
|
||||
exit(EXIT_FAILURE);
|
||||
|
||||
poptSetOtherOptionHelp(popt_context,
|
||||
_("[OPTION...] <action> <action-specific>"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user