[subset] don't segfault when --help-all is specified w/ instancing options.

pull/3967/head
Garret Rieger 2 years ago committed by Behdad Esfahbod
parent c292e577ff
commit 1a51f71afd
  1. 4
      util/hb-subset.cc

@ -668,6 +668,10 @@ parse_instance (const char *name,
GError **error)
{
subset_main_t *subset_main = (subset_main_t *) data;
if (!subset_main->face) {
// There is no face, which is needed to set up instancing. Skip parsing these options.
return true;
}
char *s = strtok((char *) arg, "=");
while (s)

Loading…
Cancel
Save