From 6994be01f40247d45e34631e4ba86b987f0acc93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Mi=C4=85sko?= Date: Thu, 17 Jan 2019 00:00:00 +0000 Subject: [PATCH] gfileinfo: Fix annotation for g_file_info_set_attribute_stringv Annotate `attr_value` parameter of `g_file_info_set_attribute_stringv` as zero-terminated array, since it isn't currently recognized as such. --- gio/gfileinfo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gio/gfileinfo.c b/gio/gfileinfo.c index fa53a9c49..420e46d56 100644 --- a/gio/gfileinfo.c +++ b/gio/gfileinfo.c @@ -1180,7 +1180,8 @@ _g_file_info_set_attribute_stringv_by_id (GFileInfo *info, * g_file_info_set_attribute_stringv: * @info: a #GFileInfo. * @attribute: a file attribute key - * @attr_value: (array) (element-type utf8): a %NULL terminated array of UTF-8 strings. + * @attr_value: (array zero-terminated=1) (element-type utf8): a %NULL + * terminated array of UTF-8 strings. * * Sets the @attribute to contain the given @attr_value, * if possible.