Skip to content

r61: The left operand of '!=' is a garbage value #200

@DimitriPapadopoulos

Description

@DimitriPapadopoulos

After updating the copy of inih bundled witch ocserv from r60 to r61, the static analyzer job in CI started complaining:

inih/ini.c:168:56: warning: The left operand of '!=' is a garbage value [core.UndefinedBinaryOperatorResult]
  168 |         if (offset == max_line - 1 && line[offset - 1] != '\n') {
      |                                       ~~~~~~~~~~~~~~~~ ^

This code was introduced by #188.

I must admit I haven't found the time to look into this static analysis issue yet, I'm creating an issue here so that I don't forget about it and for your information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions