From 3210ba45f7b0caab67babcd05b89768fe1baf8e4 Mon Sep 17 00:00:00 2001 From: liuxueli Date: Thu, 29 Apr 2021 16:27:39 +0800 Subject: set_struct_project函数允许设置NULL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tsg_entry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tsg_entry.cpp b/src/tsg_entry.cpp index 9d48b28..3a68381 100644 --- a/src/tsg_entry.cpp +++ b/src/tsg_entry.cpp @@ -191,7 +191,7 @@ static int set_drop_stream(const struct streaminfo *a_stream) static int set_struct_project(const struct streaminfo *a_stream, int project_id, void *data) { - if(a_stream==NULL || project_id<0 || data==NULL) + if(a_stream==NULL || project_id<0) { return 0; } -- cgit v1.2.3