projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3295658
)
gfileutils: Mark the return value from g_path_skip_root() as nullable
author
Philip Withnall
<philip.withnall@collabora.co.uk>
Fri, 20 Jun 2014 20:20:36 +0000
(21:20 +0100)
committer
Philip Withnall
<philip.withnall@collabora.co.uk>
Tue, 3 Mar 2015 17:59:50 +0000
(17:59 +0000)
It returns NULL for non-absolute paths.
https://bugzilla.gnome.org/show_bug.cgi?id=719966
glib/gfileutils.c
patch
|
blob
|
history
diff --git
a/glib/gfileutils.c
b/glib/gfileutils.c
index
0db07c5
..
31a84cf
100644
(file)
--- a/
glib/gfileutils.c
+++ b/
glib/gfileutils.c
@@
-2117,7
+2117,7
@@
g_path_is_absolute (const gchar *file_name)
* i.e. after the "/" in UNIX or "C:\" under Windows. If @file_name
* is not an absolute path it returns %NULL.
*
- * Returns: a pointer into @file_name after the root component
+ * Returns:
(nullable):
a pointer into @file_name after the root component
*/
const gchar *
g_path_skip_root (const gchar *file_name)