Uploaded image for project: 'Couchbase C client library libcouchbase'
  1. Couchbase C client library libcouchbase
  2. CCBC-61

pillowfight missing error variable assignment

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 1.1.0dp3
    • None
    • library
    • Security Level: Public
    • None

    Description

      https://github.com/couchbase/libcouchbase/blob/master/example/pillowfight.cc#L201

      if (libcouchbase_enable_timings(instance) != LIBCOUCHBASE_SUCCESS)

      { std::cerr << "Failed to enable timings!: " << libcouchbase_strerror(instance, error) << std::endl; timings = false; }

      Missing error = assignment here, so the error message printed here will be incorrect.

      Attachments

        For Gerrit Dashboard: CCBC-61
        # Subject Branch Project Status CR V

        Activity

          People

            avsej Sergey Avseyev
            TimSmith Tim Smith (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty