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;