Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/host/path_normalize.c')
-rw-r--r--src/host/path_normalize.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/host/path_normalize.c b/src/host/path_normalize.c
index 64c5cf2..1514355 100644
--- a/src/host/path_normalize.c
+++ b/src/host/path_normalize.c
@@ -44,15 +44,15 @@ int path_normalize(lua_State* L)
}
/* remove any trailing slashes */
- for (--src; src > buffer && *src == '/'; --src) {
- *src = '\0';
- }
-
- /* remove any leading "./" sequences */
- src = buffer;
- while (strncmp(src, "./", 2) == 0) {
- src += 2;
- }
+ for (--src; src > buffer && *src == '/'; --src) {
+ *src = '\0';
+ }
+
+ /* remove any leading "./" sequences */
+ src = buffer;
+ while (strncmp(src, "./", 2) == 0) {
+ src += 2;
+ }
*dst = '\0';
lua_pushstring(L, src);