mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix variable 'old' is used uninitialized whenever '&&' condition is false.
Spotted by clang. Differential Revision: D2721 Reviewed by: rodrigc, bapt
This commit is contained in:
parent
c3f62b5352
commit
fa77157916
1 changed files with 1 additions and 1 deletions
|
|
@ -151,7 +151,7 @@ int
|
|||
op_ip(struct snmp_context *ctx, struct snmp_value *value,
|
||||
u_int sub, u_int idx __unused, enum snmp_op op)
|
||||
{
|
||||
int old;
|
||||
int old = 0;
|
||||
|
||||
switch (op) {
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue