gfileutils: Add precondition checks to g_file_test()
commita5b58da6bf3bb21cbd3d030a369aad330f90f891
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Tue, 15 Sep 2015 09:00:44 +0000 (15 10:00 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 8 Apr 2017 05:16:04 +0000 (8 01:16 -0400)
tree90ceb6d1ce9b6c7912e766219e69eba0c5afab54
parent005dfeacba142af598d57f28da1e7f79c17d8fe1
gfileutils: Add precondition checks to g_file_test()

Otherwise g_file_test(NULL, …) causes a call to access(NULL, …) on
Linux, which is disallowed and valgrind complains about it.

https://bugzilla.gnome.org/show_bug.cgi?id=755046
glib/gfileutils.c