From 7150f2f5c508f69779f5640f5c1b566eb3b06f8e Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Fri, 6 Oct 2017 14:58:42 -0400 Subject: [PATCH] Fix test to match context against question keyword. --- platform-independent/cli-c/cli/mpw-cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform-independent/cli-c/cli/mpw-cli.c b/platform-independent/cli-c/cli/mpw-cli.c index 1035b4c7..e980caef 100644 --- a/platform-independent/cli-c/cli/mpw-cli.c +++ b/platform-independent/cli-c/cli/mpw-cli.c @@ -552,7 +552,7 @@ void cli_question(Arguments __unused *args, Operation *operation) { case MPKeyPurposeRecovery: for (size_t q = 0; !operation->question && q < operation->site->questions_count; ++q) if ((!operation->keyContext && !strlen( (&operation->site->questions[q])->keyword )) || - (operation->keyContext && strcmp( (&operation->site->questions[q])->keyword, operation->keyContext ) != 0)) + (operation->keyContext && strcmp( (&operation->site->questions[q])->keyword, operation->keyContext ) == 0)) operation->question = &operation->site->questions[q]; // If no question from mpsites, create a new one.