@matheusbsbs / matheus-bagliano / commits / 2c0b4dfd5a
Fork 0

combine-diff.c: type sanity.

In diff_tree_combined(), show_log_first boolean is initialized with rev->loginfo (pointer to a string); the intention is that if we have some string to be emitted we would want to remember that fact. Picky compilers are offended by this, so make the expression a bit type-safer. Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Jun 28, 2006 at 01:46 UTC 2c0b4dfd5a2099bdbbdfad71c3193a25c9052f2d
1 file changed +1 -1
combine-diff.c
+1 -1
@@ -841,7 +841,7 @@ void diff_tree_combined(const unsigned char *sha1,
841 diffopts.output_format = DIFF_FORMAT_NO_OUTPUT;
842 diffopts.recursive = 1;
843
844 - show_log_first = rev->loginfo;
844 + show_log_first = !!rev->loginfo;
845 needsep = 0;
846 /* find set of paths that everybody touches */
847 for (i = 0; i < num_parent; i++) {