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

[PATCH] submodule.c: fix an 'using integer as NULL pointer' warning

From
Ramsay Jones <ramsay@ramsayjones.plus.com>
Date
Mar 16, 2017, 01:02 UTC
Message-ID
<2134ffee-f144-1fb3-7e0e-325fd2873ba9@ramsayjones.plus.com>
Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
---
Hi Brandon,

If you need to re-roll your 'bw/submodule-is-active' branch, could you please squash this into the relevant patch (commit 20d59ab335, "submodule: decouple url and submodule existence", 13-03-2017).

Thanks!

ATB, Ramsay Jones

 submodule.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/submodule.c b/submodule.c
index 800283154..a77d11cc4 100644
--- a/submodule.c
+++ b/submodule.c
@@ -245,7 +245,7 @@ int is_submodule_initialized(const char *path)
 			argv_array_push(&args, item->string);
 		}
 
-		parse_pathspec(&ps, 0, 0, 0, args.argv);
+		parse_pathspec(&ps, 0, 0, NULL, args.argv);
 		ret = match_pathspec(&ps, path, strlen(path), 0, NULL, 1);
 
 		argv_array_clear(&args);
-- 
2.12.0
Next: Brandon Williams
Message 1 of 2 in “submodule.c: fix an 'using integer as NULL pointer' warning”
  1. submodule.c: fix an 'using integer as NULL pointer' warningRamsay Jones, Mar 16, 2017
  2. Brandon WilliamsMar 16, 2017

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.