aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--coreutils/md5sum.c2
-rw-r--r--md5sum.c2
2 files changed, 0 insertions, 4 deletions
diff --git a/coreutils/md5sum.c b/coreutils/md5sum.c
index e4f52075d..ac3462334 100644
--- a/coreutils/md5sum.c
+++ b/coreutils/md5sum.c
@@ -819,8 +819,6 @@ int md5sum_main(int argc,
if (string == NULL)
string = (char **) xmalloc ((argc - 1) * sizeof (char *));
- if (optarg == NULL)
- optarg = "";
string[n_strings++] = optarg;
break;
}
diff --git a/md5sum.c b/md5sum.c
index e4f52075d..ac3462334 100644
--- a/md5sum.c
+++ b/md5sum.c
@@ -819,8 +819,6 @@ int md5sum_main(int argc,
if (string == NULL)
string = (char **) xmalloc ((argc - 1) * sizeof (char *));
- if (optarg == NULL)
- optarg = "";
string[n_strings++] = optarg;
break;
}