Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Jun 2018 20:00:42 +0000 (UTC)
From:      Devin Teske <dteske@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335264 - head/lib/libdpv
Message-ID:  <201806162000.w5GK0g88063489@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <dcb314@hotmail.com>
  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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806162000.w5GK0g88063489>