diff --git a/NEWS b/NEWS
index 79c72ae47fed20f31bef45f5f64cf97432e10889..8f6f1b474f09c0ba751ad60606408c8540525d2f 100644
--- a/NEWS
+++ b/NEWS
@@ -146,6 +146,8 @@ documents those changes that are of interest to users and administrators.
     reservation sequeuece numbering scheme.
  -- Fix scontrol to be able to accept TRES as an option when creating
     a reservation.
+ -- contrib/torque/qstat.pl - return exit code of zero even with no records
+    printed for 'qstat -u'.
 
 * Changes in Slurm 15.08.6
 ==========================
diff --git a/contribs/torque/qstat.pl b/contribs/torque/qstat.pl
index a91164d3593645fb0ef046eb3ee8bf3c9f0aee64..8d7a2d7ac0055da8cc3a12d746e2cfb4c7227684 100755
--- a/contribs/torque/qstat.pl
+++ b/contribs/torque/qstat.pl
@@ -227,8 +227,8 @@ if(defined($queueList)) {
 			print_job_brief($job, $line);
 			$line++;
 		}
-		$rc = 0;
 	}
+	$rc = 0;
 }
 
 # Exit with status code