Skip to content

Commit

Permalink
fix a readline-related build failure on g++. kid51++ for the catch
Browse files Browse the repository at this point in the history
  • Loading branch information
Whiteknight committed Aug 3, 2012
1 parent dd4ce1b commit 1705fc4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pmc/socket.pmc
Expand Up @@ -424,8 +424,9 @@ present, it is used to determine line endings instead of the default C<\n>.
METHOD readline(STRING *delimiter :optional,
INTVAL has_delimiter :opt_flag) {

INTVAL delim = has_delimiter ? Parrot_str_indexed(INTERP, delimiter, 0) : '\n';
STRING *result = Parrot_io_readline_s(INTERP, SELF, delim);
if (!has_delimiter)
delimiter = PARROT_SOCKET(SELF)->record_separator;
STRING *result = Parrot_io_readline_s(INTERP, SELF, delimiter);
RETURN(STRING *result);
}

Expand Down

0 comments on commit 1705fc4

Please sign in to comment.