Changeset View
Changeset View
Standalone View
Standalone View
lang/qt/src/dn.cpp
Context not available. | |||||
#include "dn.h" | #include "dn.h" | ||||
#include <strings.h> | |||||
static const struct { | static const struct { | ||||
const char *name; | const char *name; | ||||
const char *oid; | const char *oid; | ||||
Context not available. | |||||
for (unsigned int i = 0; i < numOidMaps; ++i) | for (unsigned int i = 0; i < numOidMaps; ++i) | ||||
if (!strcasecmp((char *)p, oidmap[i].oid)) { | if (!strcasecmp((char *)p, oidmap[i].oid)) { | ||||
free(p); | free(p); | ||||
p = strdup(oidmap[i].name); | p = qstrdup(oidmap[i].name); | ||||
break; | break; | ||||
} | } | ||||
array->key = p; | array->key = p; | ||||
Context not available. |