gatchat: Abort hexdump helper when no debug function is specified

This commit is contained in:
Marcel Holtmann 2011-08-09 20:00:18 -07:00
parent 6351cb1e4e
commit 4dc66b9cb0
1 changed files with 3 additions and 0 deletions

View File

@ -140,6 +140,9 @@ void g_at_util_debug_hexdump(gboolean in, const unsigned char *buf, gsize len,
char str[68];
gsize i;
if (debugf == NULL || !len)
return;
str[0] = in ? '<' : '>';
for (i = 0; i < len; i++) {