aboutsummaryrefslogtreecommitdiff
path: root/archival/gunzip.c
diff options
context:
space:
mode:
Diffstat (limited to 'archival/gunzip.c')
-rw-r--r--archival/gunzip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/archival/gunzip.c b/archival/gunzip.c
index 430bc630e..388672541 100644
--- a/archival/gunzip.c
+++ b/archival/gunzip.c
@@ -114,7 +114,7 @@ extern int gunzip_main(int argc, char **argv)
if (argv[optind] == NULL || strcmp(argv[optind], "-") == 0) {
flags |= gunzip_to_stdout;
} else {
- if_name = strdup(argv[optind]);
+ if_name = xstrdup(argv[optind]);
/* Open input file */
in_file = xfopen(if_name, "r");