aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDevin Teske <dteske@FreeBSD.org>2018-06-16 20:00:41 +0000
committerDevin Teske <dteske@FreeBSD.org>2018-06-16 20:00:41 +0000
commita0d7de3b114c0819ce0921c10fb5bdaf2ee9976a (patch)
treeaf0ff030cff27e1192abdfc99c809f1367332865 /lib
parent46d30d3d9ce849cdf1f55b688376863a7e1cf08b (diff)
downloadsrc-a0d7de3b114c0819ce0921c10fb5bdaf2ee9976a.tar.gz
src-a0d7de3b114c0819ce0921c10fb5bdaf2ee9976a.zip
Fix comparison between pointer and char literal
PR: misc/204252 Reported by: David Binderman <dcb314@hotmail.com> MFC after: 3 days X-MFC-to: stable/11, stable/10
Notes
Notes: svn path=/head/; revision=335264
Diffstat (limited to 'lib')
-rw-r--r--lib/libdpv/dprompt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libdpv/dprompt.c b/lib/libdpv/dprompt.c
index e3d636a840df..b4fdd9959e02 100644
--- a/lib/libdpv/dprompt.c
+++ b/lib/libdpv/dprompt.c
@@ -89,7 +89,7 @@ spin_char(void)
{
char ch;
- if (spin_cp == '\0')
+ if (*spin_cp == '\0')
spin_cp = spin;
ch = *spin_cp;