Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions tagtinker_app.c
Original file line number Diff line number Diff line change
Expand Up @@ -535,9 +535,11 @@ void tagtinker_targets_load(TagTinkerApp* app) {
p = sep + 1;
}

if(tagtinker_barcode_to_plid(fields[0], app->targets[app->target_count].plid)) {
TagTinkerTarget* target = &app->targets[app->target_count];
memset(target, 0, sizeof(*target));
/* Clear the slot first: clearing it after computing the PLID
* left every saved tag with PLID 00 00 00 00 (broadcast). */
TagTinkerTarget* target = &app->targets[app->target_count];
memset(target, 0, sizeof(*target));
if(tagtinker_barcode_to_plid(fields[0], target->plid)) {
strncpy(target->barcode, fields[0], TAGTINKER_BC_LEN);
target->barcode[TAGTINKER_BC_LEN] = '\0';

Expand Down