diff options
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 |