We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 281a958 + 5a7e3f3 commit e647189Copy full SHA for e647189
1 file changed
cf-secret/cf-secret.c
@@ -951,6 +951,11 @@ int main(int argc, char *argv[])
951
952
if (print_headers)
953
{
954
+ if (input_path == NULL)
955
+ {
956
+ Log(LOG_LEVEL_ERR, "No input file specified (Use -h for help)");
957
+ DoCleanupAndExit(EXIT_FAILURE);
958
+ }
959
FILE *input_file = OpenInputOutput(input_path, "r");
960
char key[MAX_HEADER_KEY_LEN + 1];
961
char value[MAX_HEADER_VAL_LEN + 1];
0 commit comments