Fixed segfault when two modules have the same type and version.
The bug appeared in 217e48a3b091. This closes #104 issue on GitHub.
This commit is contained in:
@@ -239,7 +239,7 @@ nxt_discovery_module(nxt_task_t *task, nxt_mp_t *mp, nxt_array_t *modules,
|
|||||||
nxt_log(task, NXT_LOG_NOTICE,
|
nxt_log(task, NXT_LOG_NOTICE,
|
||||||
"ignoring %s module with the same "
|
"ignoring %s module with the same "
|
||||||
"application language version %V %V as in %V",
|
"application language version %V %V as in %V",
|
||||||
name, &app->type, version, &module[i].file);
|
name, &app->type, &version, &module[i].file);
|
||||||
|
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user