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

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Fri Mar 31 06:25:02 PDT 2017


Issue #3003 has been updated by swildner.

Status changed from New to Closed

This is a real issue. Pushed to master and MFC'd to 4.8


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

* Author: dcb
* Status: Closed
* 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