version 1.46, 2019/04/18 12:22:07 |
version 1.47, 2019/04/25 18:18:55 |
|
|
struct options_entry *o, int idx) |
struct options_entry *o, int idx) |
{ |
{ |
struct options_array_item *a; |
struct options_array_item *a; |
const char *name, *value; |
const char *name; |
char *tmp, *escaped; |
char *value, *tmp, *escaped; |
|
|
if (idx != -1) { |
if (idx != -1) { |
xasprintf(&tmp, "%s[%d]", options_name(o), idx); |
xasprintf(&tmp, "%s[%d]", options_name(o), idx); |
|
|
free(escaped); |
free(escaped); |
} else |
} else |
cmdq_print(item, "%s %s", name, value); |
cmdq_print(item, "%s %s", name, value); |
|
free(value); |
|
|
free(tmp); |
free(tmp); |
} |
} |