stagit-gopher

[fork] gopher git frontend
Log | Files | Refs | README | LICENSE

commit 249271be279ada1e7323f413ab41db3a3b99fac9
parent 8e525dddbb0022a62f969efa1f9aeb30533a3a61
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri,  6 Apr 2018 19:29:10 +0200

stagit-gopher-index: pledge after git_libgit2_init

Diffstat:
Mstagit-gopher-index.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

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)