user: cons'ifize a var

This commit is contained in:
Robert Swiecki 2018-05-20 23:52:55 +02:00
parent f8db8c7eea
commit a42203a6dd

View File

@ -238,7 +238,7 @@ bool initNsFromChild(nsjconf_t* nsjconf) {
* Best effort because of /proc/self/setgroups
*/
LOG_D("setgroups(0, NULL)");
gid_t* group_list = NULL;
const gid_t* group_list = NULL;
if (setgroups(0, group_list) == -1) {
PLOG_D("setgroups(NULL) failed");
}