diff options
Diffstat (limited to 'lang/cpp/tests')
| -rw-r--r-- | lang/cpp/tests/run-keylist.cpp | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/lang/cpp/tests/run-keylist.cpp b/lang/cpp/tests/run-keylist.cpp index 9e7d763c..b46a815a 100644 --- a/lang/cpp/tests/run-keylist.cpp +++ b/lang/cpp/tests/run-keylist.cpp @@ -160,7 +160,10 @@ main (int argc, char **argv)      std::stringstream ss;      do {          key = ctx->nextKey(err); -        ss << key << "\n\n"; +        if (!err) +        { +            ss << key << "\n\n"; +        }      } while (!err && !key.isNull());      std::cout << ss.str(); | 
