case 'V':
v = va_arg (args, rspamd_fstring_t *);
- slen = v->len;
-
- if (G_UNLIKELY (width != 0)) {
- slen = MIN (v->len, width);
- }
if (v) {
+ slen = v->len;
+
+ if (G_UNLIKELY (width != 0)) {
+ slen = MIN (v->len, width);
+ }
+
RSPAMD_PRINTF_APPEND (v->str, slen);
}
else {
case 'T':
tok = va_arg (args, rspamd_ftok_t *);
- slen = tok->len;
-
- if (G_UNLIKELY (width != 0)) {
- slen = MIN (tok->len, width);
- }
if (tok) {
+ slen = tok->len;
+
+ if (G_UNLIKELY (width != 0)) {
+ slen = MIN (tok->len, width);
+ }
RSPAMD_PRINTF_APPEND (tok->begin, slen);
}
else {
case 'v':
gs = va_arg (args, GString *);
- slen = gs->len;
- if (G_UNLIKELY (width != 0)) {
- slen = MIN (gs->len, width);
- }
if (gs) {
+ slen = gs->len;
+
+ if (G_UNLIKELY (width != 0)) {
+ slen = MIN (gs->len, width);
+ }
+
RSPAMD_PRINTF_APPEND (gs->str, slen);
}
else {