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

ismaster_ssl test leaves client sometimes uninitialized

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.4.0
    • Affects Version/s: None
    • Component/s: None
    • None

      
      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
      

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

              Created:
              Updated:
              Resolved: