chiark / gitweb /
job: don't show (null) prefix in dump
authorLennart Poettering <lennart@poettering.net>
Wed, 19 May 2010 23:14:09 +0000 (01:14 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 19 May 2010 23:14:09 +0000 (01:14 +0200)
src/job.c

index 887de92..9937ed7 100644 (file)
--- 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"