diff --git a/src/hb-ot-tag.cc b/src/hb-ot-tag.cc index 980a88583..f7b5dd2f1 100644 --- a/src/hb-ot-tag.cc +++ b/src/hb-ot-tag.cc @@ -221,8 +221,7 @@ struct LangTag int cmp (const char *a, unsigned len) const { - const char *b = this->language; - return strncmp (a, b, len); + return strncmp (a, this->language, len); } int cmp (const LangTag *that) const { return cmp (that->language, strlen (that->language)); }