Mercurial > emacs
comparison src/lread.c @ 89012:0457e4f05273
(safe_to_load_p): Fix the logic.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Mon, 19 Aug 2002 11:34:28 +0000 |
parents | 1b6e73e289bc |
children | 5e361851a772 |
comparison
equal
deleted
inserted
replaced
89011:16822384f7ed | 89012:0457e4f05273 |
---|---|
758 with NUL bytes following it, but note the version. */ | 758 with NUL bytes following it, but note the version. */ |
759 for (i = 0; i < nbytes && buf[i] != '\n'; ++i) | 759 for (i = 0; i < nbytes && buf[i] != '\n'; ++i) |
760 if (i == 4) | 760 if (i == 4) |
761 version = buf[i]; | 761 version = buf[i]; |
762 | 762 |
763 if (i < nbytes | 763 if (i == nbytes |
764 && fast_c_string_match_ignore_case (Vbytecomp_version_regexp, | 764 || fast_c_string_match_ignore_case (Vbytecomp_version_regexp, |
765 buf + i) < 0) | 765 buf + i) < 0) |
766 safe_p = 0; | 766 safe_p = 0; |
767 } | 767 } |
768 if (safe_p) | 768 if (safe_p) |
769 safe_p = version; | 769 safe_p = version; |