coccicheck: make transformation for strbuf_addf(sb, "...") more precise
[gitweb.git] / submodule.c
index 1b5cdfb7e784d646c15e59afb2fb43587a8ff8e9..1e28437a5ae21d4f8a861278c974841a9b93571e 100644 (file)
@@ -374,7 +374,7 @@ void show_submodule_summary(FILE *f, const char *path,
                        find_unique_abbrev(one, DEFAULT_ABBREV));
        if (!fast_backward && !fast_forward)
                strbuf_addch(&sb, '.');
-       strbuf_addf(&sb, "%s", find_unique_abbrev(two, DEFAULT_ABBREV));
+       strbuf_add_unique_abbrev(&sb, two, DEFAULT_ABBREV);
        if (message)
                strbuf_addf(&sb, " %s%s\n", message, reset);
        else