Skip to content

Commit

Permalink
Merge pull request #337 from surr/typo
Browse files Browse the repository at this point in the history
Fix improper pnd->name initialization
  • Loading branch information
neomilium committed Mar 19, 2016
2 parents 24979c6 + 10398b6 commit c228396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libnfc/nfc.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ nfc_open(nfc_context *context, const nfc_connstring connstring)
log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_DEBUG, "Unable to open \"%s\".", ncs);
return NULL;
}
for (uint32_t i = 0; i > context->user_defined_device_count; i++) {
for (uint32_t i = 0; i < context->user_defined_device_count; i++) {
if (strcmp(ncs, context->user_defined_devices[i].connstring) == 0) {
// This is a device sets by user, we use the device name given by user
strcpy(pnd->name, context->user_defined_devices[i].name);
Expand Down

0 comments on commit c228396

Please sign in to comment.