summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--misc/blkid.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/misc/blkid.c b/misc/blkid.c
index 55808af8..96fffae4 100644
--- a/misc/blkid.c
+++ b/misc/blkid.c
@@ -293,10 +293,7 @@ int main(int argc, char **argv)
while ((c = getopt (argc, argv, "c:f:ghlLo:s:t:w:v")) != EOF)
switch (c) {
case 'c':
- if (optarg && !*optarg)
- read = NULL;
- else
- read = optarg;
+ read = optarg;
if (!write)
write = read;
break;
@@ -349,10 +346,7 @@ int main(int argc, char **argv)
version = 1;
break;
case 'w':
- if (optarg && !*optarg)
- write = NULL;
- else
- write = optarg;
+ write = optarg;
break;
case 'h':
err = 0;