projects
/
forks
/
stagit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c07e52
)
stagit-index: pledge after git_libgit2_init
author
Hiltjo Posthuma
<hiltjo@codemadness.org>
Fri, 6 Apr 2018 17:28:05 +0000
(19:28 +0200)
committer
Hiltjo Posthuma
<hiltjo@codemadness.org>
Fri, 6 Apr 2018 17:28:05 +0000
(19:28 +0200)
stagit-index.c
patch
|
blob
|
history
diff --git
a/stagit-index.c
b/stagit-index.c
index 09e5513051c1f13bc5565b52385fc3f705de8c2e..6b7c699ba7dc82c1c7ca73eddc98fb1153989727 100644
(file)
--- 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++) {