Don't indirect through a null pointer if we run out of kernel filenames.

This commit is contained in:
Doug Rabson 2000-10-25 23:28:19 +00:00
parent a3fc4e0754
commit bcdb85b6b8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=67591

View File

@ -261,7 +261,7 @@ getbootfile(int try)
strncpy(name, spec, len);
name[len] = 0;
}
if (name[0] == 0) {
if (name && name[0] == 0) {
free(name);
name = NULL;
}