diff options
Diffstat (limited to 'common/line.c')
| -rw-r--r-- | common/line.c | 4 |
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. */ |
