tools: fix NULL pointer dereference in configure.c
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
parent
d0c7d2dd88
commit
eeeb88a1ed
@ -800,7 +800,7 @@ static void enumerate_configs(void)
|
||||
|
||||
static void check_configdir(void)
|
||||
{
|
||||
if (verify_optiondir(g_configpath))
|
||||
if (g_configpath && verify_optiondir(g_configpath))
|
||||
{
|
||||
/* Get the path to the custom board scripts directory */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user