diff --git a/src/tests.c b/src/tests.c index 3fa00df854..d408a5c30a 100644 --- a/src/tests.c +++ b/src/tests.c @@ -5180,7 +5180,7 @@ int main(int argc, char **argv) { const char* ch = argv[2]; while (pos < 16 && ch[0] != 0 && ch[1] != 0) { unsigned short sh; - if (sscanf(ch, "%2hx", &sh)) { + if ((sscanf(ch, "%2hx", &sh)) == 1) { seed16[pos] = sh; } else { break;