Browse Source

[core] fix li_path_simplify comment: always operating in-place

Change-Id: Idb657f798516b0d2ed53fb0b2cfecbcbbe801c00
master
Stefan Bühler 3 months ago
parent
commit
f25bc4106f
  1. 5
      src/common/utils.c

5
src/common/utils.c

@ -358,9 +358,6 @@ void li_url_decode(GString *path) {
* /blah/../foo gets /foo
* /abc/./xyz gets /abc/xyz
* /abc//xyz gets /abc/xyz
*
* NOTE: src and dest can point to the same buffer, in which case
* the operation is performed in-place.
*/
void li_path_simplify(GString *path) {
@ -372,7 +369,7 @@ void li_path_simplify(GString *path) {
if (path == NULL)
return;
walk = start = out = slash = path->str;
walk = start = out = slash = path->str;
while (*walk == ' ') {
walk++;
}

Loading…
Cancel
Save