mirror of
https://github.com/flatpak/flatpak.git
synced 2026-05-13 02:54:38 -04:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user