Move local_err initialization inside the loop in the module_load_qom_all()
function. This change ensures that the error variable is reset to NULL for
each iteration of the loop. This prevents triggering assert(*errp == NULL)
failure in error_setv() when local_err is reused in the loop.
Note: The local_err variable is freed in error_report_err() so there is no
any leak.
Signed-off-by: Alexander Ivanov<alexander.ivanov@virtuozzo.com>
---
util/module.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)