mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-10 15:48:06 -05:00

It wasn't used for anything except in an assert statement, which was triggered by the use of the scrlineptr() macro wrapper. Now moved that check into scrlineptr() itself, via a helper function that passes the line number of the scrlineptr() call site. (Yes, this is introducing another modalfatalbox in terminal.c, much like the dreaded line==NULL one that caused us so many headaches in past decades. But the check in question was being done _already_ by the assert in lineptr(), so this change shouldn't make it go off in any _more_ circumstances - and now, if it does, it will at least give us slightly more useful information about where the problem is!)