summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index d4e8fdd..97dac06 100644
--- a/main.c
+++ b/main.c
@@ -241,7 +241,7 @@ 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) ? (argv[2]) : NULL;
const char *ciphertext_file_path = argv[1];
/* open file */