瀏覽代碼

Fix compile warning in main.c.

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2057 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake 17 年之前
父節點
當前提交
31e850ca71
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      exec/main.c

+ 1 - 1
exec/main.c

@@ -538,7 +538,7 @@ static int corosync_security_valid (int euid, int egid)
 
 
 static int corosync_service_available (unsigned int service)
 static int corosync_service_available (unsigned int service)
 {
 {
-	return (ais_service[service]);
+	return (ais_service[service] != NULL);
 }
 }
 
 
 static int corosync_response_size_get (unsigned int service, unsigned int id)
 static int corosync_response_size_get (unsigned int service, unsigned int id)