mirror of https://github.com/BOINC/boinc.git
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:
parent
5faea1e62c
commit
7a76985f29
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue