Project

General

Profile

Bug #3003

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

Added by dcb 9 months ago. Updated 9 months ago.

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

0%


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)

History

#1 Updated by swildner 9 months ago

  • Status changed from New to Closed

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

Also available in: Atom PDF