[PATCH 20/28] Check result of logsys_subsys_create

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Jan Friesse <jfriesse@xxxxxxxxxx>
---
 exec/logsys.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/exec/logsys.c b/exec/logsys.c
index f524fcd..b1abe9d 100644
--- a/exec/logsys.c
+++ b/exec/logsys.c
@@ -305,6 +305,10 @@ int _logsys_system_setup(
 	 * Setup libqb as a subsys
 	 */
 	i = _logsys_subsys_create ("QB", "array.c");
+	if (i < 0) {
+		return -1;
+	}
+
 	_logsys_subsys_filename_add (i, "log.c");
 	_logsys_subsys_filename_add (i, "log_syslog.c");
 	_logsys_subsys_filename_add (i, "log_blackbox.c");
-- 
1.7.1

_______________________________________________
discuss mailing list
discuss@xxxxxxxxxxxx
http://lists.corosync.org/mailman/listinfo/discuss




[Index of Archives]     [Linux Clusters]     [Corosync Project]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Linux Kernel]     [Linux SCSI]     [X.Org]

  Powered by Linux