Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-2840

clang analysis: garbage values

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • None
    • WT2.9.0, 3.2.10, 3.3.12
    • None
    • None

    Description

      < src/cursor/cur_metadata.c:356:6: warning: The left operand of '==' is a garbage value
      <         if (WT_KEY_IS_METADATA(&cursor->key))
      <             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      < src/cursor/cur_metadata.c:158:3: note: expanded from macro 'WT_KEY_IS_METADATA'
      <         (WT_STRING_MATCH(WT_METADATA_URI, (key)->data, (key)->size - 1) ||\
      <          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      < ./src/include/misc.h:228:52: note: expanded from macro 'WT_STRING_MATCH'
      <             strncmp(str, bytes, len) == 0 && (str)[(len)] == '\0')
      <                                              ~~~~~~~~~~~~ ^
      

      Attachments

        Activity

          People

            keith.bostic@mongodb.com Keith Bostic
            keith.bostic@mongodb.com Keith Bostic
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: