Bugfix: "-o num" wasn't working.
authorviric@mandarina
Wed, 16 Jul 2008 06:36:11 +0200
changeset 224 f5fbb2663ae0
parent 223 3ab0fc26b03c
child 225 6c2583ea71eb
Bugfix: "-o num" wasn't working.
jobs.c
--- a/jobs.c	Tue Jul 15 23:45:30 2008 +0200
+++ b/jobs.c	Wed Jul 16 06:36:11 2008 +0200
@@ -722,7 +722,7 @@
     } else
     {
         p = get_job(jobid);
-        if (p->state != RUNNING || p->state != FINISHED)
+        if (p != 0 && p->state != RUNNING && p->state != FINISHED)
             p = 0;
     }