Skip to content

Commit

Permalink
Fix code scanning alert no. 14: Redundant null check due to previous …
Browse files Browse the repository at this point in the history
…dereference

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
lucaderi and github-advanced-security[bot] authored Jan 13, 2025
1 parent 1a1fa63 commit 95e57a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/protocols/btlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ const u_int8_t *bt_decode(const u_int8_t *b, size_t *l, int *ret, bt_parse_data_
if(*ret < 0) goto bad_data;
cbd->t = 0;
*ls = 0;
} while (*b != 'e' && l != 0);
} while (*b != 'e' && *l != 0);

b++; (*l)--;
cbd->level--;
Expand Down

0 comments on commit 95e57a0

Please sign in to comment.