tools: fix NULL pointer dereference in configure.c
@@ -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 */
