get_raw_index(): look up node name as is, before trying upper/lower case

This commit is contained in:
stefan schippers 2024-04-08 00:06:18 +02:00
parent 60e55212d5
commit 51a34ed4a7
1 changed files with 8 additions and 1 deletions

View File

@ -1407,8 +1407,15 @@ int get_raw_index(const char *node, Int_hashentry **entry_ret)
dbg(1, "get_raw_index(): node=%s\n", node);
if(sch_waves_loaded() >= 0) {
my_strncpy(inode, node, S(inode));
strtolower(inode);
entry = int_hash_lookup(&xctx->raw->table, inode, 0, XLOOKUP);
if(!entry) {
strtoupper(inode);
entry = int_hash_lookup(&xctx->raw->table, inode, 0, XLOOKUP);
}
if(!entry) {
strtolower(inode);
entry = int_hash_lookup(&xctx->raw->table, inode, 0, XLOOKUP);
}
if(!entry) {
my_snprintf(vnode, S(vnode), "v(%s)", inode);
entry = int_hash_lookup(&xctx->raw->table, vnode, 0, XLOOKUP);