Bug #9400

avs: comparison between pointer and zero character constant

Added by Toomas Soome 11 months ago. Updated 9 months ago.

Status:ClosedStart date:2018-03-28
Priority:NormalDue date:
Assignee:Toomas Soome% Done:

100%

Category:cmd - userland programs
Target version:-
Difficulty:Medium Tags:

Description

issue found by gcc 7 build:

sndrsyncd.c: In function 'cleanup_hostlist':
sndrsyncd.c:1023:29: error: comparison between pointer and zero character consta
nt [-Werror=pointer-compare]
        (host_list->hosts[i] == '\0')) {
                             ^~
sndrsyncd.c:1023:9: note: did you mean to dereference the pointer?
        (host_list->hosts[i] == '\0')) {
         ^
cc1: all warnings being treated as errors

History

#1 Updated by Electric Monk 9 months ago

  • % Done changed from 90 to 100
  • Status changed from In Progress to Closed

git commit bc0e4c28fd7055db02709c3af822f81959511c73

commit  bc0e4c28fd7055db02709c3af822f81959511c73
Author: Toomas Soome <tsoome@me.com>
Date:   2018-05-14T15:26:51.000Z

    9400 avs: comparison between pointer and zero character constant
    Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk>
    Reviewed by: C Fraire <cfraire@me.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom