coverity thinks I should check return values

This commit is contained in:
Enno Rehling 2019-09-21 22:28:13 +02:00
parent 08e45dc722
commit 0db9389df6
1 changed files with 4 additions and 3 deletions

View File

@ -1094,9 +1094,10 @@ static void report_region_schemes(struct stream *out, const region * r, faction
} }
} }
if (num > 0) { if (num > 0) {
format_replace(LOC(f->locale, "nr_schemes_template"), "{0}", buf, buf, sizeof(buf)); if (format_replace(LOC(f->locale, "nr_schemes_template"), "{0}", buf, buf, sizeof(buf))) {
newline(out); newline(out);
paragraph(out, buf, 0, 0, 0); paragraph(out, buf, 0, 0, 0);
}
} }
} }
} }