From 6c9195486e43cdb100b3ed8c5e9582cbc7023ccd Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 1 Oct 2012 09:50:20 -0500 Subject: [PATCH] stktest: Don't power up if no more tests remain --- tools/stktest.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/stktest.c b/tools/stktest.c index 05ff0ba2..12c87dde 100644 --- a/tools/stktest.c +++ b/tools/stktest.c @@ -1213,8 +1213,10 @@ void __stktest_test_next() else cur_test = cur_test->next; - if (cur_test == NULL) + if (cur_test == NULL) { g_main_loop_quit(main_loop); + return; + } powerup(); }