statzone

DNS zone file analyzer targeted at TLD zones
Log | Files | Refs | README | LICENSE

commit bcfcf733667e8bcce672bb14f462f6c517225e15
parent 36d33900b74d1d5c172a9a7b18331cdb4c1cb3db
Author: Frederic Cambus <fred@statdns.com>
Date:   Thu,  3 Jan 2019 12:50:48 +0100

Check that *lineBuffer is not NUL.

Diffstat:
Msrc/statzone.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/statzone.c b/src/statzone.c @@ -92,7 +92,7 @@ main(int argc, char *argv[]) { } while (fgets(lineBuffer, LINE_LENGTH_MAX, zoneFile)) { - if (lineBuffer) + if (*lineBuffer) results.processedLines++; }