mirror of
https://github.com/flatpak/flatpak.git
synced 2026-05-24 08:51:27 -04:00
utils: Don't segfault on 32 bit ARM
On 32 bit ARM platforms, flatpak_get_compat_arch() returns NULL, so handle that gracefully in flatpak_get_arches(). Closes: #1614 Approved by: alexlarsson
This commit is contained in:
committed by
Atomic Bot
parent
9665bb9a3f
commit
b1dedd2f3f
@@ -476,7 +476,7 @@ flatpak_get_arches (void)
|
||||
g_ptr_array_add (array, (char *)main_arch);
|
||||
|
||||
compat_arch = flatpak_get_compat_arch (kernel_arch);
|
||||
if (strcmp (compat_arch, main_arch) != 0)
|
||||
if (g_strcmp0 (compat_arch, main_arch) != 0)
|
||||
g_ptr_array_add (array, (char *)compat_arch);
|
||||
|
||||
g_ptr_array_add (array, NULL);
|
||||
|
||||
Reference in New Issue
Block a user