Allow a fingerprint to have an empty description in parse_single_fingerprint.

This is used by OSassist which often has to read such prints. Previously it
caused a parse error.
This commit is contained in:
david 2008-06-07 01:16:24 +00:00
parent 7cf7259f9d
commit 6f9f79cabf

View file

@ -941,7 +941,7 @@ FingerPrint *parse_single_fingerprint(char *fprint_orig) {
q = strchr(p, '\n');
if (!q) q = p + strlen(p);
while(isspace(*(--q)))
while(q > p && isspace(*(--q)))
;
if (q < p) fatal("Parse error on line %d of fingerprint: %s", lineno, nextline);