Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1455

ismaster_ssl test leaves client sometimes uninitialized

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Gone away
    • Affects Version/s: None
    • Fix Version/s: 1.4.0
    • Component/s: None
    • Labels:
      None

      Description

       
      tests/test-mongoc-async.c:95:8: warning: variable 'client' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
         if (with_ssl) {
             ^~~~~~~~
      tests/test-mongoc-async.c:119:43: note: uninitialized use occurs here
         future = future_client_command_simple (client, "test",
                                                ^~~~~~
      tests/test-mongoc-async.c:95:4: note: remove the 'if' if its condition is always false
         if (with_ssl) {
         ^~~~~~~~~~~~~~~
      tests/test-mongoc-async.c:63:27: note: initialize the variable 'client' to silence this warning
         mongoc_client_t *client;
                                ^
                                 = NULL
      

        Attachments

          Activity

            People

            Assignee:
            bjori Hannes Magnusson
            Reporter:
            bjori Hannes Magnusson
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: