X-Git-Url: https://jxself.org/git/?p=inform.git;a=blobdiff_plain;f=src%2Ffiles.c;h=70cfc90705de86c9289e4f8e72e2c6e91593aee0;hp=c4651399eb48a89867abf76c71e8640ba3def705;hb=c881aa3386c00d7021ffabf2f66275d6c110c1c1;hpb=8760c1ba6442153afe76bcac742e086f90c59fe8 diff --git a/src/files.c b/src/files.c index c465139..70cfc90 100644 --- a/src/files.c +++ b/src/files.c @@ -8,7 +8,7 @@ /* settings and are very host OS-dependent. */ /* */ /* Part of Inform 6.35 */ -/* copyright (c) Graham Nelson 1993 - 2020 */ +/* copyright (c) Graham Nelson 1993 - 2021 */ /* */ /* Inform is free software: you can redistribute it and/or modify */ /* it under the terms of the GNU General Public License as published by */ @@ -195,6 +195,7 @@ extern void close_all_source(void) extern int register_orig_sourcefile(char *filename) { int ix; + char *name; /* If the filename has already been used as an origsource filename, return that entry. We check the most-recently-used file first, and @@ -216,7 +217,7 @@ extern int register_orig_sourcefile(char *filename) /* This filename has never been used before. Allocate a new InputFiles entry. */ - char *name = filename; /* no translation */ + name = filename; /* no translation */ if (total_files == MAX_SOURCE_FILES) memoryerror("MAX_SOURCE_FILES", MAX_SOURCE_FILES);