aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/termptyesc.c
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2017-05-17 23:33:06 +0200
committerBoris Faure <billiob@gmail.com>2017-05-17 23:33:06 +0200
commit0517be32f482591fdc4b706d4350eadc25002978 (patch)
tree6f292c1dc041b8807b01a222a17e77463cd704a0 /src/bin/termptyesc.c
parenttyfuzz needs termpty_resize_tabs() (diff)
downloadterminology-0517be32f482591fdc4b706d4350eadc25002978.tar.gz
termptyesc: no logging when fuzzing
Diffstat (limited to 'src/bin/termptyesc.c')
-rw-r--r--src/bin/termptyesc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c
index c558679..b60dcee 100644
--- a/src/bin/termptyesc.c
+++ b/src/bin/termptyesc.c
@@ -1171,6 +1171,7 @@ _handle_esc_csi(Termpty *ty, const Eina_Unicode *c, Eina_Unicode *ce)
cc++;
return cc - c;
unhandled:
+#ifndef ENABLE_FUZZING
if (eina_log_domain_level_check(_termpty_log_dom, EINA_LOG_LEVEL_WARN))
{
Eina_Strbuf *bf = eina_strbuf_new();
@@ -1186,6 +1187,7 @@ unhandled:
WRN("unhandled CSI '%s': %s", _safechar(*cc), eina_strbuf_string_get(bf));
eina_strbuf_free(bf);
}
+#endif
cc++;
return cc - c;
}