]> gitweb.ps.run Git - ps-cgit/blobdiff - scan-tree.c
Remove redundant calls to fmt("%s", ...)
[ps-cgit] / scan-tree.c
index 0d3e0ade7d0be88e7b7b612fbf7ee1ba69f9f023..05caba53af0a88e06e1bbc73c1c34294f8a447db 100644 (file)
@@ -96,9 +96,9 @@ static void add_repo(const char *base, const char *path, repo_config_fn fn)
                return;
 
        if (base == path)
-               rel = xstrdup(fmt("%s", path));
+               rel = xstrdup(path);
        else
-               rel = xstrdup(fmt("%s", path + strlen(base) + 1));
+               rel = xstrdup(path + strlen(base) + 1);
 
        if (!strcmp(rel + strlen(rel) - 5, "/.git"))
                rel[strlen(rel) - 5] = '\0';