From: Corentin Noël Date: Thu, 6 Jul 2023 13:32:25 +0000 (+0200) Subject: glib-2.0: Fix nullability in DirUtils mkdtemp and make_tmp X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce0eadc3cf54b091f7dd1605f10eb7b99637f3b2;p=thirdparty%2Fvala.git glib-2.0: Fix nullability in DirUtils mkdtemp and make_tmp make_tmp uses a default template when used with NULL and mkdtemp can return NULL with errno set. --- diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 77675b67d..ea4d7f2d3 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -4160,10 +4160,10 @@ namespace GLib { public static int create_with_parents (string pathname, int mode); [Version (since = "2.30")] [CCode (cname = "mkdtemp")] - public static string mkdtemp (owned string template); + public static string? mkdtemp (owned string template); [Version (since = "2.30")] [CCode (cname = "g_dir_make_tmp")] - public static string make_tmp (string tmpl) throws FileError; + public static string make_tmp (string? tmpl = null) throws FileError; [Version (since = "2.6")] [CCode (cname = "g_rmdir")] public static int remove (string filename);