[DragonFlyBSD - Bug #3003] (New) lib/libkvm/kvm.c:138: suspicious comparison ?

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Fri Mar 31 05:56:57 PDT 2017


Issue #3003 has been reported by dcb.

----------------------------------------
Bug #3003: lib/libkvm/kvm.c:138: suspicious comparison ?
http://bugs.dragonflybsd.org/issues/3003

* Author: dcb
* Status: New
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
----------------------------------------
lib/libkvm/kvm.c:138]: (warning) Char literal compared with pointer 'p'. Did you intend to dereference it?

Source code is

    for (; p != '\0'; ++p)

Maybe better code

     for (; *p != '\0'; ++p)



-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



More information about the Bugs mailing list