summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2015-01-06 17:08:38 -0600
committerEdward Thomson <ethomson@microsoft.com>2015-01-06 17:08:38 -0600
commit5018e2c639aa956dd61a390699a579f8de6a4841 (patch)
tree90b9897df3a7a12467c3fd330a6aed6299003643
parent007f3ff6fa68a95feee4e70f825a49ea0ec9cb2d (diff)
downloadlibgit2-5018e2c639aa956dd61a390699a579f8de6a4841.tar.gz
submodule: declare vars at top of func block
-rw-r--r--src/submodule.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/submodule.c b/src/submodule.c
index d89dd049f..a7bdebeb8 100644
--- a/src/submodule.c
+++ b/src/submodule.c
@@ -889,8 +889,11 @@ static int git_submodule_update_repo_init_cb(
int bare,
void *payload)
{
+ git_submodule *sm;
+
GIT_UNUSED(bare);
- git_submodule *sm = payload;
+
+ sm = payload;
return submodule_repo_create(out, sm->repo, path);
}