summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3969cf7)
raw | patch | inline | side by side (parent: 3969cf7)
author | Junio C Hamano <junkio@cox.net> | |
Wed, 28 Jun 2006 08:46:41 +0000 (01:46 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 28 Jun 2006 10:58:55 +0000 (03:58 -0700) |
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>
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>
combine-diff.c | patch | blob | history |
diff --git a/combine-diff.c b/combine-diff.c
index 7178b25c53551271f869e182611bb1c705c0de76..2fd0ced3957a41d8c383b2487ddfdea77d1b3985 100644 (file)
--- a/combine-diff.c
+++ b/combine-diff.c
diffopts.output_format = DIFF_FORMAT_NO_OUTPUT;
diffopts.recursive = 1;
- show_log_first = rev->loginfo;
+ show_log_first = !!rev->loginfo;
needsep = 0;
/* find set of paths that everybody touches */
for (i = 0; i < num_parent; i++) {