diff options
author | Devin Teske <dteske@FreeBSD.org> | 2018-06-16 20:00:41 +0000 |
---|---|---|
committer | Devin Teske <dteske@FreeBSD.org> | 2018-06-16 20:00:41 +0000 |
commit | a0d7de3b114c0819ce0921c10fb5bdaf2ee9976a (patch) | |
tree | af0ff030cff27e1192abdfc99c809f1367332865 /lib | |
parent | 46d30d3d9ce849cdf1f55b688376863a7e1cf08b (diff) | |
download | src-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.c | 2 |
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; |