Commit 927f12da authored by Kenichi Handa's avatar Kenichi Handa

(safe_to_load_p): Fix the logic.

parent 8cb8232a
......@@ -760,8 +760,8 @@ safe_to_load_p (fd)
if (i == 4)
version = buf[i];
if (i < nbytes
&& fast_c_string_match_ignore_case (Vbytecomp_version_regexp,
if (i == nbytes
|| fast_c_string_match_ignore_case (Vbytecomp_version_regexp,
buf + i) < 0)
safe_p = 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment