зеркало из https://github.com/microsoft/git.git
diff.c: work around pointer constness warnings
The textconv leak fix introduced two invocations of free() to release memory pointed by "const char *", which get annoying compiler warning.
This commit is contained in:
Родитель
b76c056b95
Коммит
aed6ca52e7
4
diff.c
4
diff.c
|
@ -551,9 +551,9 @@ static void emit_rewrite_diff(const char *name_a,
|
||||||
if (lc_b)
|
if (lc_b)
|
||||||
emit_rewrite_lines(&ecbdata, '+', data_two, size_two);
|
emit_rewrite_lines(&ecbdata, '+', data_two, size_two);
|
||||||
if (textconv_one)
|
if (textconv_one)
|
||||||
free(data_one);
|
free((char *)data_one);
|
||||||
if (textconv_two)
|
if (textconv_two)
|
||||||
free(data_two);
|
free((char *)data_two);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct diff_words_buffer {
|
struct diff_words_buffer {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче