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:
Valentin Bartenev
2018-04-20 23:57:46 +03:00
parent 8ed36563d1
commit 5371891492

View File

@@ -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,
"ignoring %s module with the same "
"application language version %V %V as in %V",
name, &app->type, version, &module[i].file);
name, &app->type, &version, &module[i].file);
goto done;
}