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

View file

@ -1094,12 +1094,13 @@ 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);
} }
} }
} }
}
void report_region(struct stream *out, const region * r, faction * f) void report_region(struct stream *out, const region * r, faction * f)
{ {