Coverity analysis defect 128666: Pointless string comparison

XMLWordPrintableJSON

    • Storage Engines - 2022-09-19
    • 1

      Pointless string comparison

      This is often the result of a copy and paste error. The comparison will always return zero. A string is compared against itself with strcmp or strncmp.
      /test/format/trace.c:52: CONSTANT_EXPRESSION_RESULT 128666 "strcmp("all", "all")" is always 0 because ""all"" is compared against itself.

            Assignee:
            Will Korteland
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: