The warning is that I could create a HTTP:// based url, which is needed to support the ws:// protocol. In this case that is what the caller wants. Not all services are HTTPS://.
I think in this case the result is accurate but is not relevant to the needs of your project. I suggest you dismiss/hide the result using the button in the LGTM interface, or perhaps customize the queries that you run for your project (see here).
Description of the false positive
The warning is that I could create a
HTTP://
based url, which is needed to support thews://
protocol. In this case that is what the caller wants. Not all services areHTTPS://
.URL to the alert on the project page on LGTM.com
https://lgtm.com/projects/g/xmidt-org/curlws/snapshot/fd804131fd002481520e5298346183a8f8fa5ea3/files/src/utils.c?sort=name&dir=ASC&mode=heatmap#xf266ff1b6c8ff791:1