stagit-gopher-index: pledge after git_libgit2_init - stagit-gopher - A git gopher frontend. (mirror)
HTML git clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
DIR commit 249271be279ada1e7323f413ab41db3a3b99fac9
DIR parent 8e525dddbb0022a62f969efa1f9aeb30533a3a61
HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 6 Apr 2018 19:29:10 +0200
stagit-gopher-index: pledge after git_libgit2_init
Diffstat:
M stagit-gopher-index.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
DIR diff --git a/stagit-gopher-index.c b/stagit-gopher-index.c
@@ -220,13 +220,13 @@ main(int argc, char *argv[])
const char *repodir = NULL;
int i, ret = 0;
- if (pledge("stdio rpath", NULL) == -1)
- err(1, "pledge");
-
setlocale(LC_CTYPE, "");
git_libgit2_init();
+ if (pledge("stdio rpath", NULL) == -1)
+ err(1, "pledge");
+
for (i = 1; i < argc; i++) {
if (argv[i][0] == '-') {
if (argv[i][1] != 'b' || i + 1 >= argc)