Project

General

Profile

Actions

Bug #3003

closed

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

Added by dcb over 7 years ago. Updated over 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 #1

Updated by swildner over 7 years ago

  • Status changed from New to Closed

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

Actions

Also available in: Atom PDF