Fix a segfault with missing id in element (again)
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@395 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
58d7e51ff9
commit
fa1bf26b2f
@ -7,6 +7,7 @@
|
||||
|
||||
* src/dialogs.c: Fix dialog path warnings for command-line files.
|
||||
* src/callbacks.c: Fix Go to tag declaration/definition.
|
||||
* tagmanager/docbook.c: Fix a segfault with missing id in element.
|
||||
|
||||
|
||||
2006-05-31 Nick Treleaven <nick.treleaven@btinternet.com>
|
||||
|
@ -68,6 +68,7 @@ static void createTag(docbookKind kind, const char *buf)
|
||||
if (*buf == '>') return;
|
||||
|
||||
buf = strstr(buf, "id=\"");
|
||||
if (buf == NULL) return;
|
||||
buf += 4;
|
||||
if (*buf == '"') return;
|
||||
name = vStringNew();
|
||||
|
Loading…
x
Reference in New Issue
Block a user