1
0
mirror of https://github.com/haiwen/ccnet-server.git synced 2025-04-27 18:25:06 +00:00

Fix compile warnings.

This commit is contained in:
ly1217 2019-06-03 19:38:51 -07:00
parent 70b95a79b2
commit b687bb59e8

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