From 3b69e81c7645f51a0f8b18ea121ed25467631828 Mon Sep 17 00:00:00 2001 From: Nedko Arnaudov Date: Sat, 10 Sep 2011 15:18:59 +0300 Subject: [PATCH] ladishd: fix bug in currently unused code --- daemon/cqueue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/cqueue.c b/daemon/cqueue.c index ca5f706c..f9126c0d 100644 --- a/daemon/cqueue.c +++ b/daemon/cqueue.c @@ -2,7 +2,7 @@ /* * LADI Session Handler (ladish) * - * Copyright (C) 2009, 2010 Nedko Arnaudov + * Copyright (C) 2009,2010,2011 Nedko Arnaudov * ************************************************************************** * This file contains interface to the command queue @@ -85,7 +85,7 @@ loop: free(cmd_ptr); - if (queue_ptr->cancel && list_empty(&queue_ptr->queue)); + if (queue_ptr->cancel && list_empty(&queue_ptr->queue)) { queue_ptr->cancel = false; }