Project

General

Profile

Actions

Bug #9404

closed

abi: comparison between pointer and zero character constant

Added by Toomas Soome over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
2018-03-28
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:
External Bug:

Description

issue found by gcc 7 build:

    ../xlator.c: In function 'writemapfile':
    ../xlator.c:930:26: error: comparison between pointer and zero character constant [-Werror=pointer-compare]
             p !=  NULL && *p != '\0'; ++p) {
                              ^~
    ../xlator.c:930:23: note: did you mean to dereference the pointer?
             p !=  NULL && *p != '\0'; ++p) {
                           ^
    cc1: all warnings being treated as errors

Actions

Also available in: Atom PDF