Ooops.. mksymtab needs to check for zero-length header file names

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5076 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2012-09-01 15:46:49 +00:00
parent 8b768dc6fa
commit 599dc4f454

View File

@ -93,6 +93,8 @@ static bool check_hdrfile(const char *hdrfile)
}
static void add_hdrfile(const char *hdrfile)
{
if (hdrfile && strlen(hdrfile) > 0)
{
if (!check_hdrfile(hdrfile))
{
@ -106,6 +108,7 @@ static void add_hdrfile(const char *hdrfile)
nhdrfiles++;
}
}
}
/****************************************************************************
* Public Functions