Project

General

Profile

Actions

Bug #3003

closed

lib/libkvm/kvm.c:138: suspicious comparison ?

Added by dcb about 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
03/31/2017
Due date:
% Done:

0%

Estimated time:

Description

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)
Actions

Also available in: Atom PDF