memtest86plus/memtest86+-5.31b-serial-console-fix.patch
Jaroslav Škarvada ec7a4f770e New version
Resolves: rhbz#1758783
Dropped no-scp, no-optimization, compile-fix, crash-fix patches (all upstreamed)
Dropped fgnu89-inline patch (probably not needed)
2020-05-13 18:21:49 +02:00

14 lines
304 B
Diff

diff --git a/lib.c b/lib.c
index a2b829d..6a7e210 100644
--- a/lib.c
+++ b/lib.c
@@ -1141,7 +1141,7 @@ void serial_console_setup(char *param)
end++;
- if (*end != '\0' || *end != ' ')
+ if (*end != '\0' && *end != ' ')
return; /* garbage at the end */
serial_bits = bits;