aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/serdi.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/serdi.c b/src/serdi.c
index a464c8ec..86597cbf 100644
--- a/src/serdi.c
+++ b/src/serdi.c
@@ -233,6 +233,13 @@ main(int argc, char** argv)
in_name = (const uint8_t*)"(string)";
from_file = false;
break;
+ } else if (opt == 'c') {
+ if (argv[a][o + 1] || ++a == argc) {
+ return missing_arg(prog, 'c');
+ }
+
+ chop_prefix = (const uint8_t*)argv[a];
+ break;
} else if (opt == 'i') {
if (argv[a][o + 1] || ++a == argc) {
return missing_arg(prog, 'i');
@@ -258,13 +265,6 @@ main(int argc, char** argv)
add_prefix = (const uint8_t*)argv[a];
break;
- } else if (opt == 'c') {
- if (argv[a][o + 1] || ++a == argc) {
- return missing_arg(prog, 'c');
- }
-
- chop_prefix = (const uint8_t*)argv[a];
- break;
} else if (opt == 'r') {
if (argv[a][o + 1] || ++a == argc) {
return missing_arg(prog, 'r');