diff options
Diffstat (limited to 'geometry.c')
-rw-r--r-- | geometry.c | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -2884,17 +2884,18 @@ HandleGeometryFile(XkbFile * file, info->errorCount++; break; case StmtVModDef: - if (!failWhat) - failWhat = "virtual modifier"; + failWhat = "virtual modifier"; + goto fail; case StmtInterpDef: - if (!failWhat) - failWhat = "symbol interpretation"; + failWhat = "symbol interpretation"; + goto fail; case StmtGroupCompatDef: - if (!failWhat) - failWhat = "group compatibility map"; + failWhat = "group compatibility map"; + goto fail; case StmtKeycodeDef: - if (!failWhat) - failWhat = "key name"; + failWhat = "key name"; + goto fail; + fail: ERROR("Interpretation files may not include other types\n"); ACTION("Ignoring %s definition.\n", failWhat); info->errorCount++; |