Introduction
Introduction Statistics Contact Development Disclaimer Help
stagit-index: pledge after git_libgit2_init - stagit - static git page generator
git clone git://git.codemadness.org/stagit
Log
Files
Refs
README
LICENSE
---
commit 6a1224afae24c2ae875978108137962e64dc2d24
parent 3c07e52f98b0f49250c3de026b31202b426eb45a
Author: Hiltjo Posthuma <[email protected]>
Date: Fri, 6 Apr 2018 19:28:05 +0200
stagit-index: pledge after git_libgit2_init
Diffstat:
M stagit-index.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/stagit-index.c b/stagit-index.c
@@ -157,15 +157,16 @@ main(int argc, char *argv[])
const char *repodir;
int i, ret = 0;
- if (pledge("stdio rpath", NULL) == -1)
- err(1, "pledge");
-
if (argc < 2) {
fprintf(stderr, "%s [repodir...]\n", argv[0]);
return 1;
}
+
git_libgit2_init();
+ if (pledge("stdio rpath", NULL) == -1)
+ err(1, "pledge");
+
writeheader(stdout);
for (i = 1; i < argc; i++) {
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.