git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] builtin/apply.c: Fix a "Using plain integer as NULL pointer" warning

From
Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Date
May 13, 2012, 21:42 UTC
Message-ID
<4FB02ACC.80703@ramsay1.demon.co.uk>
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
---
Hi Junio,

Could you please squash this into commit fe823c5 ("apply: plug the three-way merge logic in", 09-05-2012) in branch 'jc/apply-3way'.

Thanks!

ATB, Ramsay Jones

 builtin/apply.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/builtin/apply.c b/builtin/apply.c
index 507c73c..9cf3ce7 100644
--- a/builtin/apply.c
+++ b/builtin/apply.c
@@ -3094,7 +3094,7 @@ static int three_way_merge(struct image *image,
 			   const unsigned char *theirs)
 {
 	mmfile_t base_file, our_file, their_file;
-	mmbuffer_t result = { 0 };
+	mmbuffer_t result = { NULL };
 	int status;
 
 	read_mmblob(&base_file, base);
-- 
1.7.10
Message 1 of 1 in “builtin/apply.c: Fix a "Using plain integer as NULL pointer" warning”
  1. builtin/apply.c: Fix a "Using plain integer as NULL pointer" warningRamsay Jones, May 13, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.