aboutsummaryrefslogtreecommitdiff
path: root/common/line.c
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2026-01-14 13:57:09 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2026-01-14 13:57:09 +0000
commit3110ba77506bf66eef114d123fd8d091d443316a (patch)
tree3e2e55d54796084a0bb75d6df87696c00a4afca9 /common/line.c
parentae7f9696aefd6ce7b024af37c4d2c32f6783d106 (diff)
Diffstat (limited to 'common/line.c')
-rw-r--r--common/line.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/line.c b/common/line.c
index 06d9a3e692d1..d1b7cb51e247 100644
--- a/common/line.c
+++ b/common/line.c
@@ -51,7 +51,7 @@ db_eget(SCR *sp,
* line in an empty file, find the last line of the file; db_last
* fails loudly.
*/
- if ((lno == 0 || lno == 1) && db_last(sp, &l1))
+ if ((lno == OOBLNO || lno == 1) && db_last(sp, &l1))
return (1);
/* If the file isn't empty, fail loudly. */
@@ -92,7 +92,7 @@ db_get(SCR *sp,
* have to have an OOB condition for the look-aside into the input
* buffer anyway.
*/
- if (lno == 0)
+ if (lno == OOBLNO)
goto err1;
/* Check for no underlying file. */