mirror of
https://github.com/systemd/systemd.git
synced 2025-09-16 17:45:36 +03:00
shared: util - use nicer idiom to silence Coverity
Change the other spot too.
This commit is contained in:
@@ -3306,13 +3306,8 @@ unsigned lines(void) {
|
|||||||
|
|
||||||
l = 0;
|
l = 0;
|
||||||
e = getenv("LINES");
|
e = getenv("LINES");
|
||||||
if (e) {
|
if (e)
|
||||||
int r;
|
(void) safe_atou(e, &l);
|
||||||
|
|
||||||
r = safe_atou(e, &l);
|
|
||||||
if (r < 0) {}
|
|
||||||
/* do nothing, we fall back to l = 0 */
|
|
||||||
}
|
|
||||||
|
|
||||||
if (l <= 0)
|
if (l <= 0)
|
||||||
l = fd_lines(STDOUT_FILENO);
|
l = fd_lines(STDOUT_FILENO);
|
||||||
|
Reference in New Issue
Block a user