summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index 7ac4eb4..e94818c 100644
--- a/main.c
+++ b/main.c
@@ -253,7 +253,8 @@ int main(int argc, char *argv[]) {
return 0;
}
- const char *plaintext_save_path = (argc >= 3) ? (argv[2]) : NULL;
+ const char *plaintext_save_path =
+ (argc >= 3 && strcmp(argv[2], "-j") != 0) ? (argv[2]) : NULL;
const char *ciphertext_file_path = argv[1];
/* open file */