Skip to content

Commit

Permalink
Merge pull request #190 from flaviojs/fix-argument-check-cisco_eeprom…
Browse files Browse the repository at this point in the history
…_copy

Fix argument check in cisco_eeprom_copy.
  • Loading branch information
grossmj authored Mar 26, 2024
2 parents 68de4f1 + 9b8f666 commit aa47776
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/cisco_eeprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ int cisco_eeprom_copy(struct cisco_eeprom *dst,const struct cisco_eeprom *src)
{
m_uint16_t *data;

if (!src || !src)
if (!dst || !src)
return(-1);

cisco_eeprom_free(dst);
Expand Down

0 comments on commit aa47776

Please sign in to comment.