tests: Fix use-after-free in the appinfo tests
commit68526565f41383f2c588951bf7e4de7a7ea4c162
authorPhilip Withnall <withnall@endlessm.com>
Wed, 27 Jun 2018 08:54:06 +0000 (27 09:54 +0100)
committerPhilip Withnall <withnall@endlessm.com>
Fri, 29 Jun 2018 11:13:32 +0000 (29 12:13 +0100)
tree25ca5ca7733d73b101ad6e6a2ced9909070a1940
parent61da8748fdfb1a86b3a0493bbc0dd03ff17dcb22
tests: Fix use-after-free in the appinfo tests

When changing the locale using setlocale(), duplicate the old locale
value before updating it, so that we can safely restore the old locale
after running the test.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
gio/tests/appinfo.c