[glib: 1/3] gfileinfo: Add missing (nullable) annotation to get_attribute_as_string()



commit 67a0d5237e48a0019164be0bebbec91291ca73b0
Author: Philip Withnall <withnall endlessm com>
Date:   Fri May 31 10:57:17 2019 +0100

    gfileinfo: Add missing (nullable) annotation to get_attribute_as_string()
    
    Signed-off-by: Philip Withnall <withnall endlessm com>
    
    Fixes: #1790

 gio/gfileinfo.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gio/gfileinfo.c b/gio/gfileinfo.c
index d1c9140df..ceddc35ed 100644
--- a/gio/gfileinfo.c
+++ b/gio/gfileinfo.c
@@ -834,7 +834,8 @@ _g_file_info_get_attribute_value (GFileInfo  *info,
  * This escapes things as needed to make the string valid
  * utf8.
  *
- * Returns: a UTF-8 string associated with the given @attribute.
+ * Returns: (nullable): a UTF-8 string associated with the given @attribute, or
+ *    %NULL if the attribute wasn’t set.
  *    When you're done with the string it must be freed with g_free().
  **/
 char *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]