]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/ttyutils: avoid checking same thing twice
authorSami Kerola <kerolasa@iki.fi>
Mon, 1 Jul 2019 21:02:06 +0000 (22:02 +0100)
committerSami Kerola <kerolasa@iki.fi>
Mon, 1 Jul 2019 21:02:06 +0000 (22:02 +0100)
commit5119ef0a8335a7a9e3fde2b6990ed66e2c0b5974
tree9403eb84e4b01e68c5a9d3b8258d9e44f7441dd3
parente3bb9bfb76c17b1d05814436ced62c05c4011f48
lib/ttyutils: avoid checking same thing twice

Check cols and lines are not NULL only once.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
lib/ttyutils.c