diff options
author | Krzysztof Adamski <k@japko.eu> | 2013-09-04 18:44:12 +0200 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-09-09 11:01:31 -0700 |
commit | 04fd266584e2c82ca6069205ab7bbe4fa0b465c8 (patch) | |
tree | b0dda5d98b94e154745c24cd8b750a7b8c92821f /examples/add.c | |
parent | 9a0e42c673e4c37ef31c2ff9204c547d85b8afda (diff) | |
download | libgit2-04fd266584e2c82ca6069205ab7bbe4fa0b465c8.tar.gz |
Move statement after declarations in add example.
Diffstat (limited to 'examples/add.c')
-rw-r--r-- | examples/add.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/add.c b/examples/add.c index 5e59b2b92..96595f895 100644 --- a/examples/add.c +++ b/examples/add.c @@ -31,11 +31,10 @@ void init_array(git_strarray *array, int argc, char **argv) int print_matched_cb(const char *path, const char *matched_pathspec, void *payload) { - (void)matched_pathspec; - struct print_payload p = *(struct print_payload*)(payload); int ret; git_status_t status; + (void)matched_pathspec; if (git_status_file(&status, p.repo, path)) { return -1; //abort |