Build warning for possibly uninitialized value in collection test

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Trivial - P5
    • 1.2-beta0
    • Affects Version/s: 1.2-beta0
    • Component/s: libmongoc
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Noticed while building with -Werror:

      tests/test-mongoc-collection.c: In function ‘_test_legacy_bulk_insert’:
      tests/test-mongoc-collection.c:458:10: warning: ‘has_oversized’ may be used uninitialized in this function [-Wmaybe-uninitialized]
             if (has_oversized && !continue_on_err) {
                ^
      

            Assignee:
            Jeremy Mikola
            Reporter:
            Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: