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:
Nick Treleaven 2006-06-02 20:23:38 +00:00
parent 58d7e51ff9
commit fa1bf26b2f
2 changed files with 2 additions and 0 deletions

View File

@ -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>

View File

@ -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();