reverse main bit of 'build fix: COMPRESS_OPTIONS'
I realized that I put opts[] inside a block that would go out of scope while it was still needed. When I went to fix that, I discovered that it is already present where it ought to be. My 'experimentation' should have defined COMPRESS_OPTIONS sooner so that the outer scope would see it. This doesn't revert the previous commit because a couple of comments and a bit of reformatting from it are still useful.
This commit is contained in:
@@ -1393,7 +1393,7 @@ docompress_file(const char *filename, boolean uncomp)
|
||||
#ifdef COMPRESS_OPTIONS
|
||||
{
|
||||
/* we can't guarantee there's only one additional option, sigh */
|
||||
char *opt, opts[sizeof COMPRESS_OPTIONS];
|
||||
char *opt;
|
||||
boolean inword = FALSE;
|
||||
|
||||
opt = strcpy(opts, COMPRESS_OPTIONS);
|
||||
|
||||
Reference in New Issue
Block a user