diff --git a/src/util/xmlconfig.c b/src/util/xmlconfig.c index 491dc4be64bfc..855b869d8b1c8 100644 --- a/src/util/xmlconfig.c +++ b/src/util/xmlconfig.c @@ -347,7 +347,10 @@ driParseOptionInfo(driOptionCache *info, driOptionInfo *optinfo = &info->info[i]; driOptionValue *optval = &info->values[i]; - assert(!optinfo->name); /* No duplicate options in your list. */ + if (optinfo->name) { + /* Duplicate options override the value, but the type must match. */ + assert(optinfo->type == opt->info.type); + } optinfo->type = opt->info.type; optinfo->range = opt->info.range;