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 <[email protected]> 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; _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "[email protected]"
