summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e36e6c0)
raw | patch | inline | side by side (parent: e36e6c0)
author | David Aguilar <davvid@gmail.com> | |
Fri, 20 Nov 2009 11:33:53 +0000 (03:33 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 21 Nov 2009 05:58:11 +0000 (21:58 -0800) |
i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5493) compiler
(and probably others) mistakenly thinks variable 'right' is used
before assigned. Work around it by giving it a fake initialization.
Signed-off-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
(and probably others) mistakenly thinks variable 'right' is used
before assigned. Work around it by giving it a fake initialization.
Signed-off-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
submodule.c | patch | blob | history |
diff --git a/submodule.c b/submodule.c
index 461faf0e000ee14cdd0bb3d40121e1d21833e30d..86aad653b7c113106e365a9d4e4c38b3e7737457 100644 (file)
--- a/submodule.c
+++ b/submodule.c
const char *del, const char *add, const char *reset)
{
struct rev_info rev;
- struct commit *commit, *left = left, *right;
+ struct commit *commit, *left = left, *right = right;
struct commit_list *merge_bases, *list;
const char *message = NULL;
struct strbuf sb = STRBUF_INIT;