Browse Source

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

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5076 7fd9a85b-ad96-42d3-883c-3090e2eb8679
sbg
patacongo 13 years ago
parent
commit
f3bd549392
  1. 3
      nuttx/tools/mksymtab.c

3
nuttx/tools/mksymtab.c

@ -94,6 +94,8 @@ static bool check_hdrfile(const char *hdrfile) @@ -94,6 +94,8 @@ static bool check_hdrfile(const char *hdrfile)
static void add_hdrfile(const char *hdrfile)
{
if (hdrfile && strlen(hdrfile) > 0)
{
if (!check_hdrfile(hdrfile))
{
if (nhdrfiles > MAX_HEADER_FILES)
@ -105,6 +107,7 @@ static void add_hdrfile(const char *hdrfile) @@ -105,6 +107,7 @@ static void add_hdrfile(const char *hdrfile)
g_hdrfiles[nhdrfiles] = strdup(hdrfile);
nhdrfiles++;
}
}
}
/****************************************************************************

Loading…
Cancel
Save