forked from nuttx/nuttx-update
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:
parent
8b768dc6fa
commit
599dc4f454
1 changed files with 10 additions and 7 deletions
|
@ -94,16 +94,19 @@ static bool check_hdrfile(const char *hdrfile)
|
||||||
|
|
||||||
static void add_hdrfile(const char *hdrfile)
|
static void add_hdrfile(const char *hdrfile)
|
||||||
{
|
{
|
||||||
if (!check_hdrfile(hdrfile))
|
if (hdrfile && strlen(hdrfile) > 0)
|
||||||
{
|
{
|
||||||
if (nhdrfiles > MAX_HEADER_FILES)
|
if (!check_hdrfile(hdrfile))
|
||||||
{
|
{
|
||||||
fprintf(stderr, "ERROR: Too man header files. Increase MAX_HEADER_FILES\n");
|
if (nhdrfiles > MAX_HEADER_FILES)
|
||||||
exit(EXIT_FAILURE);
|
{
|
||||||
}
|
fprintf(stderr, "ERROR: Too man header files. Increase MAX_HEADER_FILES\n");
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
|
||||||
g_hdrfiles[nhdrfiles] = strdup(hdrfile);
|
g_hdrfiles[nhdrfiles] = strdup(hdrfile);
|
||||||
nhdrfiles++;
|
nhdrfiles++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue