Skip to content

Commit 58b999c

Browse files
committed
Fix return type of _aws_iot_mqtt_internal_is_topic_matched
Fixes #58
1 parent ca06334 commit 58b999c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/aws_iot_mqtt_client_common_internal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,12 +422,12 @@ static IoT_Error_t _aws_iot_mqtt_internal_read_packet(AWS_IoT_Client *pClient, T
422422
// assume topic filter and name is in correct format
423423
// # can only be at end
424424
// + and # can only be next to separator
425-
static char _aws_iot_mqtt_internal_is_topic_matched(char *pTopicFilter, char *pTopicName, uint16_t topicNameLen) {
425+
static bool _aws_iot_mqtt_internal_is_topic_matched(char *pTopicFilter, char *pTopicName, uint16_t topicNameLen) {
426426

427427
char *curf, *curn, *curn_end;
428428

429429
if(NULL == pTopicFilter || NULL == pTopicName) {
430-
return NULL_VALUE_ERROR;
430+
return false;
431431
}
432432

433433
curf = pTopicFilter;

0 commit comments

Comments
 (0)