Check for, warn about and reject lines with empty keys. You can't have
a database entry with a null key. These are often caused by spurious blank lines in the map source file.
This commit is contained in:
parent
aca49be34f
commit
157f101972
@ -293,6 +293,11 @@ main (argc, argv)
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!strlen(keybuf)) {
|
||||
warnx("no key -- check source file for blank lines");
|
||||
continue;
|
||||
}
|
||||
|
||||
if (strlen(datbuf) > YPMAXRECORD) {
|
||||
warnx("data too long: %s", datbuf);
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user