Merge branch 'V5-5-patches' into V5-6-patches
* V5-5-patches:
Fix commit 7f4a7b891332899cea26e95be0337aae01648742: dont mix code and declarations.
diff --git a/snmplib/mib.c b/snmplib/mib.c
index ac6ac2e..e7fc849 100644
--- a/snmplib/mib.c
+++ b/snmplib/mib.c
@@ -1763,6 +1763,8 @@
const struct enum_list *enums,
const char *hint, const char *units)
{
+ u_char str[] = "NULL";
+
if (var->type != ASN_NULL) {
if (!netsnmp_ds_get_boolean(
NETSNMP_DS_LIBRARY_ID, NETSNMP_DS_LIB_QUICKE_PRINT)) {
@@ -1775,7 +1777,6 @@
NULL);
}
- u_char str[] = "NULL";
return snmp_strcat(buf, buf_len, out_len, allow_realloc, str);
}