1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

coverity: reorder NULL check

This commit is contained in:
Andy Green 2022-04-29 10:45:55 +01:00
parent 2d48f559f0
commit c398dd546b

View file

@ -437,11 +437,13 @@ int
lws_metric_destroy(lws_metric_t **pmt, int keep)
{
lws_metric_t *mt = *pmt;
lws_metric_pub_t *pub = lws_metrics_priv_to_pub(mt);
lws_metric_pub_t *pub;
if (!mt)
return 0;
pub = lws_metrics_priv_to_pub(mt);
lws_dll2_remove(&mt->list);
if (keep) {