Commit 12be9e81 authored by Anton Khirnov's avatar Anton Khirnov Committed by Max Kellermann

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().
parent 281cd7c0
ver 0.17.2 (2012/??/??)
* protocol:
- fix crash in local file check
ver 0.17.1 (2012/07/31)
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment