Skip to content

Commit 0a7b431

Browse files
authored
Merge pull request #121 from phord/master
Don't compare nullptr string - Fixes #120
2 parents 6ed54d3 + 55c5df6 commit 0a7b431

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AdafruitIO_Group.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ void AdafruitIO_Group::call(AdafruitIO_Data *d) {
345345

346346
while (cur_cb) {
347347

348-
if (strcmp(cur_cb->feed, d->feedName()) == 0 || cur_cb->feed == NULL) {
348+
if (cur_cb->feed == NULL || strcmp(cur_cb->feed, d->feedName()) == 0) {
349349
cur_cb->dataCallback(d);
350350
}
351351

0 commit comments

Comments
 (0)