1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

xz: Use an array instead of pointer for stdin_filename.

Thanks Joerg Sonnenberger.
This commit is contained in:
Lasse Collin 2010-09-05 21:11:33 +03:00
parent 8c7d3d1a07
commit da014d5597
2 changed files with 2 additions and 2 deletions

View file

@ -25,7 +25,7 @@ bool opt_robot = false;
// We don't modify or free() this, but we need to assign it in some // We don't modify or free() this, but we need to assign it in some
// non-const pointers. // non-const pointers.
const char *const stdin_filename = "(stdin)"; const char stdin_filename[] = "(stdin)";
/// Parse and set the memory usage limit for compression and/or decompression. /// Parse and set the memory usage limit for compression and/or decompression.

View file

@ -37,6 +37,6 @@ extern bool opt_keep_original;
// extern bool opt_recursive; // extern bool opt_recursive;
extern bool opt_robot; extern bool opt_robot;
extern const char *const stdin_filename; extern const char stdin_filename[];
extern void args_parse(args_info *args, int argc, char **argv); extern void args_parse(args_info *args, int argc, char **argv);