This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository efm2.
View the commit online.
commit 9b459439630b72ef97388bd10da0f594a6d07798
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
AuthorDate: Sat Sep 9 10:20:31 2023 +0100
add comments to sanitizer
---
src/efm/efm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/efm/efm.c b/src/efm/efm.c
index 8e19d29..e343d2d 100644
--- a/src/efm/efm.c
+++ b/src/efm/efm.c
@@ -1621,7 +1621,7 @@ _sanitize_dir(const char *path)
for (pp = NULL, p2 = path2, p = path; *p;)
{
if ((pp) && (*p == '/') && (*pp == '/'))
- {
+ { // prev chr is / and current is / - skip
pp = p;
p++;
}
@@ -1634,7 +1634,7 @@ _sanitize_dir(const char *path)
}
}
if ((pp) && (*pp != '/'))
- {
+ { // add a trailing / on the end as we want to keep from adding it
*p2 = '/';
p2++;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.