mirror of
https://github.com/michaelrsweet/mxml.git
synced 2024-11-13 07:15:30 +00:00
Add NULL check and remove dead code.
This commit is contained in:
parent
5f263362a9
commit
06d3aa27fb
12
mxmldoc.c
12
mxmldoc.c
@ -4,7 +4,7 @@
|
||||
* Documentation generator using Mini-XML, a small XML-like file parsing
|
||||
* library.
|
||||
*
|
||||
* Copyright 2003-2007 by Michael Sweet.
|
||||
* Copyright 2003-2008 by Michael Sweet.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library General Public
|
||||
@ -1227,9 +1227,12 @@ scan_file(const char *filename, /* I - Filename */
|
||||
if (!strcmp(node->value.text.string, "("))
|
||||
break;
|
||||
|
||||
for (node = node->next; node; node = node->next)
|
||||
if (strcmp(node->value.text.string, "*"))
|
||||
break;
|
||||
if (node)
|
||||
{
|
||||
for (node = node->next; node; node = node->next)
|
||||
if (strcmp(node->value.text.string, "*"))
|
||||
break;
|
||||
}
|
||||
|
||||
if (node)
|
||||
{
|
||||
@ -1282,7 +1285,6 @@ scan_file(const char *filename, /* I - Filename */
|
||||
#ifdef DEBUG
|
||||
fputs("Identifier: <<<< , >>>\n", stderr);
|
||||
#endif /* DEBUG */
|
||||
ch = type->last_child->value.text.string[0];
|
||||
mxmlNewText(type, 0, ",");
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user