1
0
mirror of https://github.com/haiwen/ccnet-server.git synced 2025-05-09 07:36:20 +00:00

Merge pull request from haiwen/fix_warning

Fix compile warnings.
This commit is contained in:
Jiaqiang Xu 2019-06-04 11:34:48 +08:00 committed by GitHub
commit 8c67ea353c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -799,7 +799,7 @@ ccnet_group_manager_get_groups_by_user (CcnetGroupManager *mgr,
/* Get ancestor groups in descending order by group_id.*/
GString *paths = g_string_new ("");
g_string_printf (sql, "");
g_string_erase (sql, 0, -1);
for (ptr = groups; ptr; ptr = ptr->next) {
group = ptr->data;
g_object_get (group, "parent_group_id", &parent_group_id, NULL);