1. Stefan Saasen
  2. git


Junio C Hamano  committed aed6ca5

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.

  • Participants
  • Parent commits b76c056
  • Branches master

Comments (0)

Files changed (1)

File diff.c

View file
 	if (lc_b)
 		emit_rewrite_lines(&ecbdata, '+', data_two, size_two);
 	if (textconv_one)
-		free(data_one);
+		free((char *)data_one);
 	if (textconv_two)
-		free(data_two);
+		free((char *)data_two);
 struct diff_words_buffer {