mirror of
https://github.com/flatpak/flatpak.git
synced 2026-10-11 11:00:23 -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:
1 file changed
+1
-1
@@ -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