]> git.proxmox.com Git - libgit2.git/blobdiff - src/refs.c
Fix parentheses warning
[libgit2.git] / src / refs.c
index eb8af5863781e423948437abb832a42484504eff..1589bc37d35c2e63d5756e4bfe1973b1fb0c6f2c 100644 (file)
@@ -1634,13 +1634,14 @@ int git_reference_normalize_name(
                        }
                }
 
-               if (*current == '/')
+               if (*current == '/') {
                        if (buffer_out > buffer_out_start)
                                contains_a_slash = 1;
                        else {
                                current++;
                                continue;
                        }
+               }
 
 
                *buffer_out++ = *current++;