MSSQL Multiple Instances (windows.plugin) (#19559)
thiagoftsm committed
Feb 3, 2025 at 08:26 UTC
86a9690b0b0c9b7bbe51f2dd26c8e9dbc7b38daf
1 file changed
+1
-1
src/collectors/windows.plugin/perflib-mssql.c
+1
-1
@@ -310,9 +310,9 @@ static int mssql_fill_dictionary()
310
311
DWORD i;
312
char avalue[REGISTRY_MAX_VALUE] = {'\0'};
313
- DWORD length = REGISTRY_MAX_VALUE;
313
for (i = 0; i < values; i++) {
314
avalue[0] = '\0';
315
+ DWORD length = REGISTRY_MAX_VALUE;
316
317
ret = RegEnumValue(hKey, i, avalue, &length, NULL, NULL, NULL, NULL);
318
if (ret != ERROR_SUCCESS)