summaryrefslogtreecommitdiffstats
path: root/src/lib.c
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2022-10-14 22:11:50 +0300
committergramanas <anastasis.gramm2@gmail.com>2022-10-14 22:11:50 +0300
commit7b7240d50dd5e418bc17beff48aa5681b398b980 (patch)
treeb521f1da139ce85974b71f1698cc140b1e7fed6c /src/lib.c
parent433ce0f6795a4db89921b26274dd0b18fcccbb21 (diff)
downloadfoodtools-7b7240d50dd5e418bc17beff48aa5681b398b980.tar.gz
foodtools-7b7240d50dd5e418bc17beff48aa5681b398b980.tar.bz2
foodtools-7b7240d50dd5e418bc17beff48aa5681b398b980.zip
More changes
Diffstat (limited to 'src/lib.c')
-rw-r--r--src/lib.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib.c b/src/lib.c
index a1f1f29..e91fb03 100644
--- a/src/lib.c
+++ b/src/lib.c
@@ -8,7 +8,7 @@ const char * default_food_lib = "/usr/local/share/food";
const char *
foodlib_env()
{
- char * env = getenv("FOOD_LIB");
+ char * env = getenv("FOODLIB");
if (env) return env;
@@ -67,6 +67,8 @@ collect_library(char *** dst,
n = rcp_find(&lib, n, includes[i]);
}
+ n = rcp_find(&lib, n, foodlib_env());
+
*dst = lib;
return n; // no of items
}