Skip to content
Snippets Groups Projects
Commit a409d9a8 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

utils: fix undefined variable if libidn is not present

parent 87932c61
No related branches found
No related tags found
1 merge request!115IDN support to Knot Utils
......@@ -90,6 +90,8 @@ static bool parse_nsec3_params(knot_nsec3_params_t *params, const char *salt,
*/
int main(int argc, char *argv[])
{
bool enable_idn = false;
struct option options[] = {
{ "version", no_argument, 0, 'V' },
{ "help", no_argument, 0, 'h' },
......@@ -97,8 +99,6 @@ int main(int argc, char *argv[])
};
#ifdef LIBIDN
bool enable_idn = false;
// Set up localization.
if (setlocale(LC_CTYPE, "") != NULL) {
enable_idn = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment