158
158
/* Handle --defaults-group-suffix= */
160
160
const char **extra_groups;
162
162
struct handle_option_ctx *ctx= (struct handle_option_ctx*) func_ctx;
164
164
TYPELIB *group= ctx->group;
167
167
(const char**)alloc_root(ctx->alloc,
168
168
(2*group->count+1)*sizeof(char*))))
171
171
for (i= 0; i < group->count; i++)
174
174
extra_groups[i]= group->type_names[i]; /** copy group */
176
176
len= strlen(extra_groups[i]);
177
177
if (!(ptr= (char *)alloc_root(ctx->alloc, len+instance_len+1)))
180
180
extra_groups[i+group->count]= ptr;
182
182
/** Construct new group */
183
183
memcpy(ptr, extra_groups[i], len);
184
184
memcpy(ptr+len, my_defaults_group_suffix, instance_len+1);
188
188
group->type_names= extra_groups;
189
189
group->type_names[group->count]= 0;
194
194
if ((error= search_default_file_with_ext(func, func_ctx, "", "",