diff --git a/builtin/add.c b/builtin/add.c
index 5c9f4afef21908f3d5814ad0f9e6f2b5ff55b0b8..f7a17e43f6816622ab4ff836a169221289756505 100644 (file)
--- a/builtin/add.c
+++ b/builtin/add.c
struct rev_info rev;
init_revisions(&rev, prefix);
setup_revisions(0, NULL, &rev, NULL);
- rev.prune_data = pathspec;
+ init_pathspec(&rev.prune_data, pathspec);
rev.diffopt.output_format = DIFF_FORMAT_CALLBACK;
rev.diffopt.format_callback = update_callback;
data.flags = flags;