summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-03-01 14:57:16 +0100
committerHarald Hoyer <harald@redhat.com>2013-03-01 15:05:28 +0100
commit5a82a91a9904059c174232f1a534a160b5f61c0e (patch)
treeb62eac8287df2b6d05cedcd9cca55e85aa503616 /src/core
parente2cb60fa97e6a6483a98b685ff0d20c61da38c00 (diff)
manager: prevent segfault in manager_print_jobs_in_progress()
Diffstat (limited to 'src/core')
-rw-r--r--src/core/manager.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/manager.c b/src/core/manager.c
index ec12a75371..5527e9d429 100644
--- a/src/core/manager.c
+++ b/src/core/manager.c
@@ -269,6 +269,9 @@ static void manager_print_jobs_in_progress(Manager *m) {
if (j->state == JOB_RUNNING && counter++ == print_nr)
break;
+ if (!j)
+ return;
+
cylon_pos = m->jobs_in_progress_iteration % 14;
if (cylon_pos >= 8)
cylon_pos = 14 - cylon_pos;