Skip to content

Commit

Permalink
Fix err var in nfprofile
Browse files Browse the repository at this point in the history
  • Loading branch information
phaag committed Jan 29, 2024
1 parent dc1b1b2 commit f0d2750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nfsen/nfprofile.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ static void process_data(profile_channel_info_t *channels, unsigned int num_chan
case IfNameRecordType:
case VrfNameRecordType:
for (int j = 0; j < num_channels; j++) {
if (channels[j].nffile != NULL && err == 1) {
if (channels[j].nffile != NULL) {
// flush new map
AppendToBuffer(channels[j].nffile, (void *)record_ptr, record_ptr->size);
}
Expand Down

0 comments on commit f0d2750

Please sign in to comment.