fix segfault when no API is specified to mdtest

Signed-off-by: Mohamad Chaarawi <mohamad.chaarawi@intel.com>
master
Mohamad Chaarawi 2019-09-09 22:03:55 +00:00
parent 73dbda09c6
commit fe9d76ddf3
1 changed files with 1 additions and 1 deletions

View File

@ -1548,7 +1548,7 @@ void display_freespace(char *testdirpath)
strcpy(dirpath, ".");
}
if (strcasecmp(param.api, "DFS") == 0)
if (param.api && strcasecmp(param.api, "DFS") == 0)
return;
VERBOSE(3,5,"Before show_file_system_size, dirpath is '%s'", dirpath );