Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-21246

Coverity analysis defect 76653: Uninitialized scalar variable

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.0-rc3
    • Affects Version/s: None
    • Component/s: WiredTiger
    • Fully Compatible
    • ALL

      Use of an uninitialized variable

      Defect 76653 (STATIC_C)
      Checker UNINIT (subcategory none)
      File: /src/third_party/wiredtiger/src/evict/evict_lru.c
      Function __evict_server
      /src/third_party/wiredtiger/src/evict/evict_lru.c, line: 162
      Declaring variable "stuck_ts" without initializer.

          	struct timespec now, stuck_ts;
      

      /src/third_party/wiredtiger/src/evict/evict_lru.c, line: 213
      Using uninitialized value "stuck_ts.tv_nsec".

          			if (WT_TIMEDIFF(now, stuck_ts) / WT_BILLION > 300) {
      

      File: /src/third_party/wiredtiger/src/evict/evict_lru.c
      Function __evict_server
      /src/third_party/wiredtiger/src/evict/evict_lru.c, line: 162
      Declaring variable "stuck_ts" without initializer.

          	struct timespec now, stuck_ts;
      

      /src/third_party/wiredtiger/src/evict/evict_lru.c, line: 208
      Using uninitialized value "stuck_ts.tv_sec".

          		} else if (stuck_ts.tv_sec == 0)
      

            Assignee:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: