From 10f15756774d37b0f1bdeeffd8e912bd10630080 Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Sun, 19 Apr 2015 23:07:23 +0200
Subject: degesch: fix creation of encoding converters
---
degesch.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/degesch.c b/degesch.c
index 001aba2..7199251 100644
--- a/degesch.c
+++ b/degesch.c
@@ -3032,14 +3032,15 @@ main (int argc, char *argv[])
opt_handler_free (&oh);
- struct app_context ctx;
print_status (PROGRAM_NAME " " PROGRAM_VERSION " starting");
- app_context_init (&ctx);
- g_ctx = &ctx;
// We only need to convert to and from the terminal encoding
setlocale (LC_CTYPE, "");
+ struct app_context ctx;
+ app_context_init (&ctx);
+ g_ctx = &ctx;
+
SSL_library_init ();
atexit (EVP_cleanup);
SSL_load_error_strings ();
--
cgit v1.2.3-70-g09d2