diff --git a/du3/program.c b/du3/program.c index d23454d..228646b 100644 --- a/du3/program.c +++ b/du3/program.c @@ -56,7 +56,7 @@ int main() { equation[eq_index][eq_operand_length] = '\0'; eq_index++; } - if (operator_count < 2) { + if (operator_count < 2 && !error) { error = 1; strcpy(output[output_length], "CHYBA"); output_length++;