mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
Regression introduced by68ce7dc0 With the addition to skipws, peek() will read the next whitespace in the buffer. The logic has been changed to use the extraction operator so ws are consumed. The peek - get is now changed by >> - unget calls
This commit is contained in:
parent
906eea460a
commit
479bfd0807
@ -589,13 +589,18 @@ static int parse_auth_msg(
|
||||
int tmp_gid;
|
||||
bool gr_admin = false;
|
||||
|
||||
char c = is.peek();
|
||||
char c;
|
||||
|
||||
is >> c;
|
||||
|
||||
if ( c == '*' )
|
||||
{
|
||||
is.get(c);
|
||||
gr_admin = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
is.unget();
|
||||
}
|
||||
|
||||
is >> tmp_gid;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user