Merge pull request #4269 from pwithnall/strcmp-crash

dir: Avoid a crash when looking up summary for a ref without an arch
This commit is contained in:
Philip Withnall
2021-05-11 23:18:45 +01:00
committed by GitHub

View File

@@ -595,7 +595,7 @@ get_summary_for_ref (FlatpakRemoteState *self,
if (arch != NULL)
summary = g_hash_table_lookup (self->subsummaries, arch);
if (summary == NULL)
if (summary == NULL && arch != NULL)
{
const char *non_compat_arch = flatpak_get_compat_arch_reverse (arch);