mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-24 21:16:15 +01:00
gfileutils: Add a comment in g_canonicalize_filename()
Clarify the code a little. This introduces no functional changes. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
parent
711efa507b
commit
96bccb89df
@ -2775,6 +2775,8 @@ g_canonicalize_filename (const gchar *filename,
|
||||
output--)
|
||||
*output = G_DIR_SEPARATOR;
|
||||
|
||||
/* 1 to re-increment after the final decrement above (so that output >= canon),
|
||||
* and 1 to skip the first `/` */
|
||||
output += 2;
|
||||
|
||||
/* POSIX allows double slashes at the start to mean something special
|
||||
|
Loading…
Reference in New Issue
Block a user