]> err.no Git - systemd/commitdiff
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 887de92cadf88eb70033ff665e6be829b421b513..9937ed735b6bffd107c3043559e67fc77f8da729 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"