diff options
author | Joseph Bisch <joseph.bisch@gmail.com> | 2017-01-16 12:56:33 -0500 |
---|---|---|
committer | Joseph Bisch <joseph.bisch@gmail.com> | 2017-01-16 12:56:33 -0500 |
commit | c8dafe2a76f199f35e24440ca85796454717965e (patch) | |
tree | 7c952b8f19ea0a9dccb9c2565626cdcdf48451ab /src/fe-common/core/printtext.c | |
parent | 6e36ddc6b7cc1b87005743da4e58bd1d3c8182be (diff) | |
download | irssi-c8dafe2a76f199f35e24440ca85796454717965e.zip |
Add SUPPRESS_PRINTF_FALLBACK
There are some cases (such as fuzzing with fe-fuzz) where suppressing
printf output may be desirable.
Diffstat (limited to 'src/fe-common/core/printtext.c')
-rw-r--r-- | src/fe-common/core/printtext.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fe-common/core/printtext.c b/src/fe-common/core/printtext.c index ba6f3242..01ef2dcd 100644 --- a/src/fe-common/core/printtext.c +++ b/src/fe-common/core/printtext.c @@ -446,7 +446,9 @@ static void sig_print_text(TEXT_DEST_REC *dest, const char *text) if (dest->window == NULL) { str = strip_codes(text); +#ifndef SUPPRESS_PRINTF_FALLBACK printf("NO WINDOWS: %s\n", str); +#endif g_free(str); return; } |