mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-29 12:03:03 +00: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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=286402
@ -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 New Issue
Block a user