aboutsummaryrefslogtreecommitdiffstats
path: root/common/t-mapstrings.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/t-mapstrings.c')
-rw-r--r--common/t-mapstrings.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/t-mapstrings.c b/common/t-mapstrings.c
index 88c6674bf..8f4c6507b 100644
--- a/common/t-mapstrings.c
+++ b/common/t-mapstrings.c
@@ -68,7 +68,7 @@ test_map_static_macro_string (void)
result = map_static_macro_string (tests[testno].string);
if (!result)
fail (testno);
- if (strcmp (result, tests[testno].expected))
+ else if (strcmp (result, tests[testno].expected))
fail (testno);
if (!tests[testno].lastresult)
tests[testno].lastresult = result;
@@ -80,7 +80,7 @@ test_map_static_macro_string (void)
result = map_static_macro_string (tests[testno].string);
if (!result)
fail (testno);
- if (strcmp (result, tests[testno].expected))
+ else if (strcmp (result, tests[testno].expected))
fail (testno);
if (result != tests[testno].lastresult)
fail (testno);