All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] test-xml-encode: fix sparse NULL pointer warnings
@ 2019-01-26 21:03 Ramsay Jones
  2019-01-28 16:10 ` sparse job, was " Johannes Schindelin
  0 siblings, 1 reply; 8+ messages in thread
From: Ramsay Jones @ 2019-01-26 21:03 UTC (permalink / raw)
  To: Johannes Schindelin; +Cc: Junio C Hamano, GIT Mailing-list


Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
---

Hi Johannes,

If you need to re-roll your 'js/vsts-ci' branch, could you please
squash this into the relevant patch (commit af7747e7c7 ("tests: optionally
write results as JUnit-style .xml", 2019-01-23)).

Thanks!

ATB,
Ramsay Jones

 t/helper/test-xml-encode.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/t/helper/test-xml-encode.c b/t/helper/test-xml-encode.c
index 367c4875e6..a648bbd961 100644
--- a/t/helper/test-xml-encode.c
+++ b/t/helper/test-xml-encode.c
@@ -26,7 +26,7 @@ int cmd__xml_encode(int argc, const char **argv)
 		if (tmp2) {
 			if ((ch & 0xc0) != 0x80) {
 				fputs(utf8_replace_character, stdout);
-				tmp2 = 0;
+				tmp2 = NULL;
 				cur--;
 				continue;
 			}
@@ -34,7 +34,7 @@ int cmd__xml_encode(int argc, const char **argv)
 			tmp2++;
 			if (--remaining == 0) {
 				fwrite(tmp, tmp2 - tmp, 1, stdout);
-				tmp2 = 0;
+				tmp2 = NULL;
 			}
 			continue;
 		}
-- 
2.20.0

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-01-29  2:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-26 21:03 [PATCH] test-xml-encode: fix sparse NULL pointer warnings Ramsay Jones
2019-01-28 16:10 ` sparse job, was " Johannes Schindelin
2019-01-28 20:13   ` Ramsay Jones
2019-01-28 22:34     ` Johannes Schindelin
2019-01-29  0:02       ` Ramsay Jones
2019-01-29  1:44     ` Jonathan Nieder
2019-01-29  1:52     ` Luc Van Oostenryck
2019-01-29  2:23       ` Ramsay Jones

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.