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:
parent
2d48f559f0
commit
c398dd546b
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_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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue