vars: also check idx.

This commit is contained in:
Martin Preuss
2024-05-09 00:52:26 +02:00
parent b473d62cdc
commit b6e4a5265a

View File

@@ -287,7 +287,7 @@ int AQH_Vars_SetCharValue(AQH_VARS *vt, uint32_t flags, const char *path, char *
const char *AQH_Vars_GetCharValue(AQH_VARS *vt, const char *path, int idx, const char *defaultValue)
{
if (vt) {
if (vt && idx>=0) {
AQH_VARS *vtChild;
AQH_VARS *vtValue;
int i;