about summary refs log tree commit diff stats
path: root/ui-snapshot.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui-snapshot.c')
-rw-r--r--ui-snapshot.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/ui-snapshot.c b/ui-snapshot.c index 5136c49..7115ec4 100644 --- a/ui-snapshot.c +++ b/ui-snapshot.c
@@ -58,13 +58,12 @@ static int write_compressed_tar_archive(const char *hex,
58 char *filter_argv[]) 58 char *filter_argv[])
59{ 59{
60 int rv; 60 int rv;
61 struct cgit_filter f = { 61 struct cgit_exec_filter f;
62 .cmd = filter_argv[0], 62 cgit_exec_filter_init(&f, filter_argv[0], filter_argv);
63 .argv = filter_argv, 63
64 }; 64 cgit_open_filter(&f.base);
65 cgit_open_filter(&f);
66 rv = write_tar_archive(hex, prefix); 65 rv = write_tar_archive(hex, prefix);
67 cgit_close_filter(&f); 66 cgit_close_filter(&f.base);
68 return rv; 67 return rv;
69} 68}
70 69