From 2253543a5ceafdb71a7f47757b4695b59f78e755 Mon Sep 17 00:00:00 2001 From: Tsarevich Dmitry Date: Sun, 23 Feb 2020 19:52:55 +0300 Subject: [PATCH] [args] Fix copy-paste errors during args checks --- src/parser.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/parser.c b/src/parser.c index 79dfc43b..5b18c2c5 100644 --- a/src/parser.c +++ b/src/parser.c @@ -646,7 +646,7 @@ char* get_token_data_file_indexed(const char* token, const char* filename, int i goto out; } wtoken = utf8_to_wchar(token); - if (wfilename == NULL) { + if (wtoken == NULL) { uprintf(conversion_error, token); goto out; } @@ -696,7 +696,7 @@ char* set_token_data_file(const char* token, const char* data, const char* filen } wtoken = utf8_to_wchar(token); wtoken_len = wcslen(wtoken); - if (wfilename == NULL) { + if (wtoken == NULL) { uprintf(conversion_error, token); goto out; } @@ -975,7 +975,7 @@ char* insert_section_data(const char* filename, const char* section, const char* goto out; } wsection = utf8_to_wchar(section); - if (wfilename == NULL) { + if (wsection == NULL) { uprintf(conversion_error, section); goto out; }