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

pull/199/head
Ariadne Conill 2019-08-23 12:47:22 -05:00
parent 19aa93e371
commit 2adafc2729
1 changed files with 1 additions and 1 deletions

View File

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