Version v0.2.99 - Correct bug

This commit is contained in:
2025-08-27 09:12:58 -04:00
parent 3859e6492a
commit 0ae2423f19

5
otp.c
View File

@@ -315,9 +315,8 @@ int command_line_mode(int argc, char* argv[]) {
} }
free(default_pad); free(default_pad);
// Call encrypt_text and then comment about using default pad // Call encrypt_text and return result
int result = encrypt_text(pad_identifier, text); return encrypt_text(pad_identifier, text);
return result;
} else { } else {
printf("Error: No default pad configured. Specify pad explicitly or configure default pad.\n"); printf("Error: No default pad configured. Specify pad explicitly or configure default pad.\n");
return 1; return 1;