Skip to content

Commit

Permalink
permission-db: Do not crash on NULL child_app_id
Browse files Browse the repository at this point in the history
The callers of this function check whether the return value is NULL.

Fixes: #1616
  • Loading branch information
A6GibKm committed Feb 21, 2025
1 parent f7837cc commit 806fb8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion document-portal/permission-db.c
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,7 @@ permission_db_entry_get_permissions_variant (PermissionDbEntry *entry,
child = g_variant_get_child_value (app_array, m);
g_variant_get_child (child, 0, "&s", &child_app_id);

cmp = strcmp (app_id, child_app_id);
cmp = g_strcmp0 (app_id, child_app_id);
if (cmp == 0)
{
res = g_variant_get_child_value (child, 1);
Expand Down

0 comments on commit 806fb8d

Please sign in to comment.