summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-05-20 01:14:09 +0200
committerLennart Poettering <lennart@poettering.net>2010-05-20 01:14:09 +0200
commit9eb63b3cb4a41707b6c01d81cef15acf1a757613 (patch)
tree527d6bb4312b4cf197ce803cdd72c21de5f65519
parent7c394faa38de389638e19b19212ed50aca870e3c (diff)
job: don't show (null) prefix in dump
-rw-r--r--src/job.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/job.c b/src/job.c
index 887de92cad..9937ed735b 100644
--- a/src/job.c
+++ b/src/job.c
@@ -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"