diff options
Diffstat (limited to 'helper.c')
-rw-r--r-- | helper.c | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -85,13 +85,10 @@ void helper_nonblock(const int fd) static void helper_printavaInt(struct AttributeValueAssertion* a,const char* rel) { - putchar('['); - printf("%.*s", (int)a->desc.l,a->desc.s); - putchar(' '); - printf("%s", rel); - putchar(' '); - printf("%.*s", (int)a->value.l,a->value.s); - putchar(']'); + printf("[%.*s %s", (int)a->desc.l, a->desc.s, rel); + if (a->value.l != 0 && a->value.s != NULL) { + printf(" %.*s]", (int)a->value.l,a->value.s); + } } void helper_printava(struct AttributeValueAssertion* a,const char* rel) |