[ubports/focal] click-service: fix crash due to incorrect dereferencing order
requested to merge personal/peat-psuwit/focal_-_fix-click-service-memory-corruption into ubports/focal
(Manual & partial backport of !34 (merged))
*gidpp[i]
will index gidpp[i]
and then dereference it. That's not
what we want; we want to index *gidpp
, not gidpp
itself. This lead
to crash due to invalid memory access.
Not sure why it was working before. Maybe we're just lucky.
(cherry picked from commit a1e144f2)