mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
coverity: reorder NULL check
This commit is contained in:
parent
5f749bb796
commit
247cf01935
1 changed files with 3 additions and 1 deletions
|
@ -437,11 +437,13 @@ int
|
||||||
lws_metric_destroy(lws_metric_t **pmt, int keep)
|
lws_metric_destroy(lws_metric_t **pmt, int keep)
|
||||||
{
|
{
|
||||||
lws_metric_t *mt = *pmt;
|
lws_metric_t *mt = *pmt;
|
||||||
lws_metric_pub_t *pub = lws_metrics_priv_to_pub(mt);
|
lws_metric_pub_t *pub;
|
||||||
|
|
||||||
if (!mt)
|
if (!mt)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
pub = lws_metrics_priv_to_pub(mt);
|
||||||
|
|
||||||
lws_dll2_remove(&mt->list);
|
lws_dll2_remove(&mt->list);
|
||||||
|
|
||||||
if (keep) {
|
if (keep) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue