git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] submodule: don't use an integer as a NULL pointer
@ 2016-02-21 17:27 Ramsay Jones
  0 siblings, 0 replies; only message in thread
From: Ramsay Jones @ 2016-02-21 17:27 UTC (permalink / raw)
  To: Stefan Beller; +Cc: Junio C Hamano, GIT Mailing-list


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

Hi Stefan,

If you need to re-roll your 'sb/submodule-init' branch, could
you please squash this into the relevant patch.

Thanks!

ATB,
Ramsay Jones

 submodule.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/submodule.c b/submodule.c
index 30c393b..ccafd45 100644
--- a/submodule.c
+++ b/submodule.c
@@ -253,7 +253,7 @@ const char *submodule_strategy_to_string(const struct submodule_update_strategy
 		return NULL;
 	case SM_UPDATE_COMMAND:
 		strbuf_addf(&sb, "!%s", s->command);
-		return strbuf_detach(&sb, 0);
+		return strbuf_detach(&sb, NULL);
 	}
 	return NULL;
 }
-- 
2.7.0

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-02-21 17:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-21 17:27 [PATCH] submodule: don't use an integer as a NULL pointer Ramsay Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).