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 79320216524a717dfd44745d136a884f908196cf
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
AuthorDate: Sat Sep 9 10:23:37 2023 +0100

    steamline sanitize code to be shorter
---
 src/efm/efm.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/efm/efm.c b/src/efm/efm.c
index e343d2d..065c82b 100644
--- a/src/efm/efm.c
+++ b/src/efm/efm.c
@@ -1622,15 +1622,12 @@ _sanitize_dir(const char *path)
      {
         if ((pp) && (*p == '/') && (*pp == '/'))
           { // prev chr is / and current is / - skip
-             pp = p;
-             p++;
+             pp = p++;
           }
         else
           {
-             *p2 = *p;
-             pp = p;
-             p2++;
-             p++;
+             *p2++ = *p;
+             pp = p++;
           }
      }
    if ((pp) && (*pp != '/'))

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to