job: don't show (null) prefix in dump

This commit is contained in:
Lennart Poettering 2010-05-20 01:14:09 +02:00
parent 7c394faa38
commit 9eb63b3cb4

View file

@ -144,11 +144,12 @@ void job_dependency_delete(Job *subject, Job *object, bool *matters) {
}
void job_dump(Job *j, FILE*f, const char *prefix) {
assert(j);
assert(f);
if (!prefix)
prefix = "";
fprintf(f,
"%s-> Job %u:\n"
"%s\tAction: %s -> %s\n"