commit | 5f9193a6edf1864a243def36ec4d1277054236c6 | [log] [tgz] |
---|---|---|
author | Steve Dower <steve.dower@microsoft.com> | Sat Feb 04 15:19:29 2017 -0800 |
committer | Steve Dower <steve.dower@microsoft.com> | Sat Feb 04 15:19:29 2017 -0800 |
tree | c88222a6702078a2590a2b0d4ebd873c341ebd55 | |
parent | 722e3e2705e1f7dbbbc2ad58e2957f9fb759ad76 [diff] [blame] |
Issue #29326: Ignores blank lines in ._pth files (Patch by Alexey Izbyshev)
diff --git a/PC/getpathp.c b/PC/getpathp.c index 0b0ae49..1eeebfe 100644 --- a/PC/getpathp.c +++ b/PC/getpathp.c
@@ -560,7 +560,7 @@ char *p = fgets(line, MAXPATHLEN + 1, sp_file); if (!p) break; - if (*p == '\0' || *p == '#') + if (*p == '\0' || *p == '\r' || *p == '\n' || *p == '#') continue; while (*++p) { if (*p == '\r' || *p == '\n') {