svn commit: r335264 - head/lib/libdpv
Devin Teske
dteske at FreeBSD.org
Sat Jun 16 20:00:42 UTC 2018
Author: dteske
Date: Sat Jun 16 20:00:41 2018
New Revision: 335264
URL: https://svnweb.freebsd.org/changeset/base/335264
Log:
Fix comparison between pointer and char literal
PR: misc/204252
Reported by: David Binderman <dcb314 at hotmail.com>
MFC after: 3 days
X-MFC-to: stable/11, stable/10
Modified:
head/lib/libdpv/dprompt.c
Modified: head/lib/libdpv/dprompt.c
==============================================================================
--- head/lib/libdpv/dprompt.c Sat Jun 16 19:45:06 2018 (r335263)
+++ head/lib/libdpv/dprompt.c Sat Jun 16 20:00:41 2018 (r335264)
@@ -89,7 +89,7 @@ spin_char(void)
{
char ch;
- if (spin_cp == '\0')
+ if (*spin_cp == '\0')
spin_cp = spin;
ch = *spin_cp;
More information about the svn-src-all
mailing list