{
URLProtocol **p;
p = &first_protocol;
- while (*p != NULL)
+ while (*p)
p = &(*p)->next;
*p = protocol;
protocol->next = NULL;
return url_alloc_for_protocol(puc, p, filename, flags, int_cb);
*puc = NULL;
- if (av_strstart("https:", filename, NULL))
+ if (av_strstart(filename, "https:", NULL))
av_log(NULL, AV_LOG_WARNING, "https protocol not found, recompile with openssl or gnutls enabled.\n");
return AVERROR_PROTOCOL_NOT_FOUND;
}