goto failed;
}
- if (root)
+ if (!root)
object = g_string_append(object, FL_PARENT_FOLDER_ELEMENT);
ret = verify_path(name);
len = MIN(string->len, count);
memcpy(buf, string->str, len);
- string = g_string_erase(string, 0, len);
+ g_string_erase(string, 0, len);
return len;
}