mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
mqtt: always init wildcard and shadow
This commit is contained in:
parent
b0b7fff957
commit
c182871358
1 changed files with 2 additions and 4 deletions
|
@ -429,10 +429,8 @@ lws_mqtt_create_sub(struct _lws_mqtt_related *mqtt, const char *topic)
|
|||
__func__);
|
||||
return NULL;
|
||||
}
|
||||
if (flag == LMVTR_VALID_WILDCARD)
|
||||
mysub->wildcard = 1;
|
||||
else if (flag == LMVTR_VALID_SHADOW)
|
||||
mysub->shadow = 1;
|
||||
mysub->wildcard = (flag == LMVTR_VALID_WILDCARD);
|
||||
mysub->shadow = (flag == LMVTR_VALID_SHADOW);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
Loading…
Add table
Reference in a new issue