T_BEGIN {
const char *temp = vstrconcat(str1, args, &len);
-
- if (temp == NULL)
- ret = NULL;
- else {
- t_buffer_alloc(len);
- ret = p_malloc(default_pool, len);
- memcpy(ret, temp, len);
- }
+ t_buffer_alloc(len);
+ ret = p_malloc(default_pool, len);
+ memcpy(ret, temp, len);
} T_END;
va_end(args);
if (pool->datastack_pool) {
ret = vstrconcat(str1, args, &len);
- if (ret != NULL)
- t_buffer_alloc(len);
+ t_buffer_alloc(len);
} else {
T_BEGIN {
temp = vstrconcat(str1, args, &len);
- if (temp == NULL)
- ret = NULL;
- else {
- t_buffer_alloc(len);
- ret = p_malloc(pool, len);
- memcpy(ret, temp, len);
- }
+ t_buffer_alloc(len);
+ ret = p_malloc(pool, len);
+ memcpy(ret, temp, len);
} T_END;
}
va_start(args, str1);
ret = vstrconcat(str1, args, &len);
- if (ret != NULL)
- t_buffer_alloc(len);
+ t_buffer_alloc(len);
va_end(args);
return ret;