forked from github/server
coverity thinks I should check return values
This commit is contained in:
parent
08e45dc722
commit
0db9389df6
|
@ -1094,11 +1094,12 @@ 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)
|
||||||
|
|
Loading…
Reference in New Issue