From 38cdf737943a5279eec91df8caf83185ef92c80a Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 27 Mar 2007 15:16:56 +0000 Subject: unposted: uninitialized variable in 23238 --- Src/jobs.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'Src') diff --git a/Src/jobs.c b/Src/jobs.c index c201ecd96..53e654c2b 100644 --- a/Src/jobs.c +++ b/Src/jobs.c @@ -821,6 +821,14 @@ printjob(Job jn, int lng, int synch) int doneprint = 0; FILE *fout = (synch == 2) ? stdout : shout; + /* + * Wow, what a hack. Did I really write this? --- pws + */ + if (jn < jobtab || jn >= jobtab + jobtabsize) + job = jn - oldjobtab; + else + job = jn - jobtab; + if (jn->stat & STAT_NOPRINT) { if (jn->stat & STAT_DONE) { deletejob(jn); @@ -834,14 +842,6 @@ printjob(Job jn, int lng, int synch) return 0; } - /* - * Wow, what a hack. Did I really write this? --- pws - */ - if (jn < jobtab || jn >= jobtab + jobtabsize) - job = jn - oldjobtab; - else - job = jn - jobtab; - if (lng < 0) { conted = 1; lng = !!isset(LONGLISTJOBS); -- cgit 1.4.1