diff --git a/src/tests.c b/src/tests.c index 132df9ba9c..cab3bcfb70 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;