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 authored and GitHub committed 2021-05-11 23:18:45 +01:00
commit 087dfe6630
1 file changed
+1 -1
+1 -1
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);