libpkgconf: personality: return the default personality if loading a personality file failed

feature/tap-sh
Ariadne Conill 2019-08-23 12:47:22 -05:00
parent 19aa93e371
commit bfd5a7658b
1 changed files with 1 additions and 1 deletions

View File

@ -248,6 +248,6 @@ pkgconf_cross_personality_find(const char *triplet)
finish:
pkgconf_path_free(&plist);
return out;
return out != NULL ? out : pkgconf_cross_personality_default();
}
#endif