Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Nov 2015 15:25:51 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 204252] usr/src/lib/libdpv/dprompt.c:92: possible bad if ?
Message-ID:  <bug-204252-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204252

            Bug ID: 204252
           Summary: usr/src/lib/libdpv/dprompt.c:92: possible bad if ?
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: misc
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: dcb314@hotmail.com

[usr/src/lib/libdpv/dprompt.c:92]: (warning) Char literal compared with pointer
'spin_cp'. Did you intend to dereference it?

Source code is

   if (spin_cp == '\0')

Maybe better code

   if (*spin_cp == '\0')

-- 
You are receiving this mail because:
You are the assignee for the bug.



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