diff options
author | Harald Hoyer <harald@redhat.com> | 2013-03-01 14:57:16 +0100 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2013-03-01 15:05:28 +0100 |
commit | 5a82a91a9904059c174232f1a534a160b5f61c0e (patch) | |
tree | b62eac8287df2b6d05cedcd9cca55e85aa503616 /src/core/manager.c | |
parent | e2cb60fa97e6a6483a98b685ff0d20c61da38c00 (diff) |
manager: prevent segfault in manager_print_jobs_in_progress()
Diffstat (limited to 'src/core/manager.c')
-rw-r--r-- | src/core/manager.c | 3 |
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; |