config: selection-target: space-optimize the static ‘value’ array

This commit is contained in:
Daniel Eklöf 2021-01-20 17:57:44 +01:00
parent b8685e17ea
commit 3d60600897
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -674,7 +674,7 @@ parse_section_main(const char *key, const char *value, struct config *conf,
}
else if (strcmp(key, "selection-target") == 0) {
static const char *const values[] = {
static const char values[][12] = {
[SELECTION_TARGET_NONE] = "none",
[SELECTION_TARGET_PRIMARY] = "primary",
[SELECTION_TARGET_CLIPBOARD] = "clipboard",