attr_names may be non-NULL even when there are no attributes

git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@554 a7169a2c-3604-0410-bc95-c702d8d87f7a
This commit is contained in:
gombasg 2006-05-15 12:27:20 +00:00 committed by Adam Visegradi
parent 5faea1e62c
commit 7a76985f29
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ static void fileref_start(GMarkupParseContext *ctx, const char *element_name,
{
fileref_ctx *fctx = ptr;
if (attr_names)
if (attr_names && attr_names[0])
{
*error = g_error_new(G_MARKUP_ERROR,
G_MARKUP_ERROR_UNKNOWN_ATTRIBUTE,