Skip to content

Commit 750d61e

Browse files
Remove extra parentheses from matchTopic function
Co-authored-by: Muneeb Ahmed <[email protected]>
1 parent 9b4bd7f commit 750d61e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demos/mqtt/subscription-manager/mqtt_subscription_manager.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ static bool matchTopic( const char * pTopicName,
315315
* Note: According to the MQTT 3.1.1 specification, incoming PUBLISH topic names starting
316316
* the "$" character cannot be matched against topic filter starting with a wildcard.
317317
* i.e. for example, "$SYS/sport" cannot be matched with "#" or "+/sport" topic filters. */
318-
if( ( status == false ) && !( ( ( pTopicName[ 0 ] == '$' ) ) &&
318+
if( ( status == false ) && !( ( pTopicName[ 0 ] == '$' ) &&
319319
( topicFilterStartsWithWildcard == true ) ) )
320320
{
321321
status = matchTopicFilter( pTopicName, topicNameLength, pTopicFilter, topicFilterLength );

0 commit comments

Comments
 (0)