From Kovarththanan Rajaratnam:

Avoid duplicate blurb/name.

svn path=/trunk/; revision=29014
This commit is contained in:
Stig Bjørlykke 2009-07-08 08:00:55 +00:00
parent 16849e5cff
commit ec53e7789a
1 changed files with 6 additions and 4 deletions

View File

@ -616,13 +616,15 @@ void register_mibs(void) {
typedata->display,
NULL,
0,
#if !defined _WIN32 || (_MSC_VER == 1200)
smiRenderOID(smiNode->oidlen, smiNode->oid, SMI_RENDER_ALL),
#else
g_strdup (smiRenderOID(smiNode->oidlen, smiNode->oid, SMI_RENDER_ALL)),
#endif
HFILL }};
/* Don't allow duplicate blurb/name */
if (strcmp(hf.hfinfo.blurb, hf.hfinfo.name) == 0) {
smi_free((void *) hf.hfinfo.blurb);
hf.hfinfo.blurb = NULL;
}
oid_data->value_hfid = -1;
if ( IS_ENUMABLE(hf.hfinfo.type) && (smiEnum = smiGetFirstNamedNumber(smiType))) {