Fix commit 7f4a7b891332899cea26e95be0337aae01648742: dont mix code and declarations.
diff --git a/snmplib/mib.c b/snmplib/mib.c
index c6e0010..7dcf3d0 100644
--- a/snmplib/mib.c
+++ b/snmplib/mib.c
@@ -1737,6 +1737,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)) {
@@ -1749,7 +1751,6 @@
                                           NULL);
     }
 
-    u_char          str[] = "NULL";
     return snmp_strcat(buf, buf_len, out_len, allow_realloc, str);
 }