fix potential null pointer dereference.

Signed-off-by: wangzhiqiang <wangzhiqiang95@huawei.com>
This commit is contained in:
wangzhiqiang
2023-02-10 15:02:23 +08:00
parent 4fc619853d
commit ec0efe7068
10 changed files with 110 additions and 5 deletions

View File

@@ -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>"));