1
0
mirror of https://github.com/haiwen/ccnet-server.git synced 2025-09-17 15:30:24 +00:00

Merge pull request #33 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

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);