Commit 2364d4fe authored by Sebastian Ramacher's avatar Sebastian Ramacher

Reduce array size

parent 42372360
......@@ -129,19 +129,13 @@ char*
girara_get_xdg_path(girara_xdg_path_t path)
{
static const char* VARS[] = {
"XDG_CONFIG_HOME",
"XDG_DATA_HOME",
"XDG_CONFIG_DIRS",
"XDG_DATA_DIRS",
"XDG_CACHE_HOME",
[XDG_CONFIG_DIRS] = "XDG_CONFIG_DIRS",
[XDG_DATA_DIRS] = "XDG_DATA_DIRS"
};
static const char* DEFAULTS[] = {
"NOTUSED",
"NOTUSED",
"/etc/xdg",
"/usr/local/share/:/usr/share",
"NOTUSED"
[XDG_CONFIG_DIRS] = "/etc/xdg",
[XDG_DATA_DIRS] = "/usr/local/share/:/usr/share"
};
switch (path) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment