From Kovarththanan Rajaratnam:
Avoid duplicate blurb/name. svn path=/trunk/; revision=29014
This commit is contained in:
parent
16849e5cff
commit
ec53e7789a
10
epan/oids.c
10
epan/oids.c
|
@ -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))) {
|
||||
|
|
Loading…
Reference in New Issue