1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-12-27 03:21:26 +03:00

xmlcatalog: flush stdout before interactive shell input.

This commit is contained in:
Patrick Monnerat 2015-04-20 15:00:58 +02:00 committed by Daniel Veillard
parent cad1634ef4
commit 2137326eda

View File

@ -80,6 +80,7 @@ xmlShellReadline(const char *prompt) {
if (prompt != NULL)
fprintf(stdout, "%s", prompt);
fflush(stdout);
if (!fgets(line_read, 500, stdin))
return(NULL);
line_read[500] = 0;