From a0d7de3b114c0819ce0921c10fb5bdaf2ee9976a Mon Sep 17 00:00:00 2001 From: Devin Teske Date: Sat, 16 Jun 2018 20:00:41 +0000 Subject: [PATCH] Fix comparison between pointer and char literal PR: misc/204252 Reported by: David Binderman MFC after: 3 days X-MFC-to: stable/11, stable/10 --- lib/libdpv/dprompt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;