summaryrefslogtreecommitdiff
path: root/elfutils/src/ldlex.c
diff options
context:
space:
mode:
Diffstat (limited to 'elfutils/src/ldlex.c')
-rw-r--r--elfutils/src/ldlex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elfutils/src/ldlex.c b/elfutils/src/ldlex.c
index dbbdf07a..e1b5b4e9 100644
--- a/elfutils/src/ldlex.c
+++ b/elfutils/src/ldlex.c
@@ -1243,7 +1243,7 @@ static int input (void );
/* This used to be an fputs(), but since the string might contain NUL's,
* we now use fwrite().
*/
-#define ECHO fwrite( ldtext, ldleng, 1, ldout )
+#define ECHO do { if (fwrite( ldtext, ldleng, 1, ldout )) {} } while (0)
#endif
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,