mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-09 08:10:09 +08:00
Improve comment.
This commit is contained in:
parent
6c3561b9e4
commit
2732932de4
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/port/exec.c,v 1.17 2004/07/26 01:48:00 momjian Exp $
|
* $PostgreSQL: pgsql/src/port/exec.c,v 1.18 2004/08/08 02:22:55 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -383,8 +383,10 @@ static char *pipe_read_line(char *cmd, char *line, int maxsize)
|
|||||||
/* So we read some data */
|
/* So we read some data */
|
||||||
retval = line;
|
retval = line;
|
||||||
|
|
||||||
/* We emulate fgets() behaviour. So if there is no newline
|
/*
|
||||||
* at the end, we add one... */
|
* We emulate fgets() behaviour. So if there is no newline
|
||||||
|
* at the end, we add one...
|
||||||
|
*/
|
||||||
if (line[strlen(line)-1] != '\n')
|
if (line[strlen(line)-1] != '\n')
|
||||||
strcat(line,"\n");
|
strcat(line,"\n");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user