Fix maxlen in SetEntPropString not being initialized (bug 6391).

This var is only used when setting a direct string, rather than a string_t. Some flawed
logic was causing it to only be set if the sendprop didn't have a proxy function (although
all strings should; that's how we detect whether it's a string_t or not). The var only needs
to be set if it's not a string_t, but does not hurt anything if it is.
This commit is contained in:
Nicholas Hastings 2015-07-25 10:46:41 -04:00
parent 7d153cf9f9
commit f589298879

View File

@ -2109,10 +2109,10 @@ static cell_t SetEntPropString(IPluginContext *pContext, const cell_t *params)
bIsStringIndex = true;
}
}
else
{
// Only used if not string index.
maxlen = DT_MAX_STRING_BUFFERSIZE;
}
break;
}
default: