diff --git a/zipl/src/job.c b/zipl/src/job.c index 03abc329..49926307 100644 --- a/zipl/src/job.c +++ b/zipl/src/job.c @@ -1788,7 +1788,7 @@ get_job_from_config_file(struct command_line* cmdline, struct job_data* job) { struct scan_token* scan; struct scan_token* new_scan; - const char *filename; + const char *filename = NULL; char *blsdir; char* source; int i, rc, scan_size; @@ -1811,6 +1811,10 @@ get_job_from_config_file(struct command_line* cmdline, struct job_data* job) break; } } + if (filename == NULL) { + error_text("No zipl configuration was readable"); + return -1; + } source = ""; } printf("Using config file '%s'%s\n", filename, source);