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

This commit is contained in:
Garret Rieger 2022-12-19 22:40:11 +00:00 committed by Behdad Esfahbod
parent c292e577ff
commit 1a51f71afd
1 changed files with 4 additions and 0 deletions

View File

@ -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)