prevent false reads in multi-threaded ngshared

This commit is contained in:
Holger Vogt 2018-05-19 16:39:16 +02:00
parent 74584c94ee
commit bea6fba788
1 changed files with 3 additions and 0 deletions

View File

@ -1055,8 +1055,11 @@ inp_dodeck(
ct->ci_inprogress = FALSE;
ct->ci_runonce = FALSE;
ct->ci_commands = end;
/* prevent false reads in multi-threaded ngshared */
#ifndef SHARED_MODULE
if (reuse)
tfree(ct->ci_filename);
#endif
ct->ci_filename = copy(filename);
if (!noparse) {