Hi,
Is the strtok safe in this case ? why not strtok_r ?
static int parse_list(string& uid_list, vector<string>& uids)
{
...
const char *p = strtok(s, " ,");
while (p) {
...
p = strtok(NULL, " ,");
}
...
}
bool RGWAccessControlPolicy_SWIFT::create(RGWRados *store, string& id, string&
name, string& read_list, string& write_list)
{
...
int r = parse_list(read_list, uids);
...
}
Thanks
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html