diff options
author | araujo <araujo@FreeBSD.org> | 2015-08-07 06:15:01 +0000 |
---|---|---|
committer | araujo <araujo@FreeBSD.org> | 2015-08-07 06:15:01 +0000 |
commit | 012ab6e58848e199ac9f3741214736b9424a6daa (patch) | |
tree | 75e473fe430a15e1de053158e32d977c97d4570e /contrib/bsnmp | |
parent | 665130d1837bd3ab32d07962477b86851ff28162 (diff) | |
download | FreeBSD-src-012ab6e58848e199ac9f3741214736b9424a6daa.zip FreeBSD-src-012ab6e58848e199ac9f3741214736b9424a6daa.tar.gz |
Fix variable 'old' is used uninitialized whenever '&&' condition is false.
Spotted by clang.
Differential Revision: D2721
Reviewed by: rodrigc, bapt
Diffstat (limited to 'contrib/bsnmp')
-rw-r--r-- | contrib/bsnmp/snmp_mibII/mibII_ip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/bsnmp/snmp_mibII/mibII_ip.c b/contrib/bsnmp/snmp_mibII/mibII_ip.c index 11efe82..1e33dc9 100644 --- a/contrib/bsnmp/snmp_mibII/mibII_ip.c +++ b/contrib/bsnmp/snmp_mibII/mibII_ip.c @@ -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) { |