summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkira TAGOH <akira@tagoh.org>2013-08-23 19:58:43 +0900
committerAkira TAGOH <akira@tagoh.org>2013-08-24 13:46:40 +0900
commit6c664d533d242112c30e0d3b585e90a361a1b959 (patch)
tree4a17dfb45301bf2bee8f741e5f622a07ab2b09aa
parentf3bb3f19c917e3fd0a0cdd9a2adf8f827e7a5838 (diff)
Fix a typo
-rw-r--r--src/fcxml.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/fcxml.c b/src/fcxml.c
index 2cdf0ad0..b464b4ed 100644
--- a/src/fcxml.c
+++ b/src/fcxml.c
@@ -2509,7 +2509,6 @@ FcParseMatch (FcConfigParse *parse)
{
const FcChar8 *kind_name;
FcMatchKind kind;
- FcEdit *edit = 0;
FcVStack *vstack;
FcRule *rule = NULL, *r;
@@ -2545,8 +2544,10 @@ FcParseMatch (FcConfigParse *parse)
{
FcConfigMessage (parse, FcSevereError,
"<match target=\"scan\"> cannot edit user-defined object \"%s\"",
- FcObjectName(edit->object));
- break;
+ FcObjectName(vstack->u.edit->object));
+ if (rule)
+ FcRuleDestroy (rule);
+ return;
}
r = FcRuleCreate (FcRuleEdit, vstack->u.edit);
if (rule)