- commit
- 6a1224afae24c2ae875978108137962e64dc2d24
- parent
- 3c07e52f98b0f49250c3de026b31202b426eb45a
- Author
- Hiltjo Posthuma <hiltjo@codemadness.org>
- Date
- 2018-04-06 17:28
stagit-index: pledge after git_libgit2_init
Diffstat
M | stagit-index.c | 7 | ++++--- |
1 files changed, 4 insertions, 3 deletions
diff --git a/stagit-index.c b/stagit-index.c
@@ -157,15 +157,16 @@ main(int argc, char *argv[]) 157 157 const char *repodir; 158 158 int i, ret = 0; 159 159160 -1 if (pledge("stdio rpath", NULL) == -1)161 -1 err(1, "pledge");162 -1163 160 if (argc < 2) { 164 161 fprintf(stderr, "%s [repodir...]\n", argv[0]); 165 162 return 1; 166 163 } -1 164 167 165 git_libgit2_init(); 168 166 -1 167 if (pledge("stdio rpath", NULL) == -1) -1 168 err(1, "pledge"); -1 169 169 170 writeheader(stdout); 170 171 171 172 for (i = 1; i < argc; i++) {