ismaster_ssl test leaves client sometimes uninitialized

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.4.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
              Hannes Magnusson (Inactive)
              Reporter:
              Hannes Magnusson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: