From 12be9e818f01777283d49c8e37f618e4e9731371 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sun, 12 Aug 2012 18:58:50 +0200 Subject: client_file: remove pure attribute from client_allow_file(). That function is not pure, it writes to error. When marked as pure, the compiler is allowed to assume it does not do anything to error, so it can remain NULL, which would result in an invalid read in print_error(). --- src/client_file.h | 1 - 1 file changed, 1 deletion(-) (limited to 'src') diff --git a/src/client_file.h b/src/client_file.h index 3dcbe7500..bc64bd041 100644 --- a/src/client_file.h +++ b/src/client_file.h @@ -35,7 +35,6 @@ struct client; * @param path_fs the absolute path name in filesystem encoding * @return true if access is allowed */ -G_GNUC_PURE bool client_allow_file(const struct client *client, const char *path_fs, GError **error_r); -- cgit v1.2.3