[glib/glib-2-60: 2/4] gwinhttpfile: Document constructor as potentially returning NULL
- From: Nirbheek Chauhan <nirbheekc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-60: 2/4] gwinhttpfile: Document constructor as potentially returning NULL
- Date: Tue, 27 Aug 2019 07:28:42 +0000 (UTC)
commit 7b90d507d8a22eb2a31a8c291966d271db0212eb
Author: Philip Withnall <withnall endlessm com>
Date: Tue Jul 2 12:09:42 2019 +0100
gwinhttpfile: Document constructor as potentially returning NULL
It can return NULL if the URI was badly encoded or couldn’t be handled
by Windows’ API.
Signed-off-by: Philip Withnall <withnall endlessm com>
Helps: #1819
gio/win32/gwinhttpfile.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/win32/gwinhttpfile.c b/gio/win32/gwinhttpfile.c
index d5df16d91..d6acab7b8 100644
--- a/gio/win32/gwinhttpfile.c
+++ b/gio/win32/gwinhttpfile.c
@@ -80,7 +80,7 @@ g_winhttp_file_init (GWinHttpFile *winhttp)
* @vfs: GWinHttpVfs to use
* @uri: URI of the GWinHttpFile to create.
*
- * Returns: new winhttp #GFile.
+ * Returns: (nullable): new winhttp #GFile, or %NULL if there was an error constructing it.
*/
GFile *
_g_winhttp_file_new (GWinHttpVfs *vfs,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]