From b687bb59e87dcd542c15ffe9e1c259ed2969c623 Mon Sep 17 00:00:00 2001 From: ly1217 Date: Mon, 3 Jun 2019 19:38:51 -0700 Subject: [PATCH] Fix compile warnings. --- net/server/group-mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/server/group-mgr.c b/net/server/group-mgr.c index 2a561e7..055e12d 100644 --- a/net/server/group-mgr.c +++ b/net/server/group-mgr.c @@ -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);