diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2022-10-14 22:11:50 +0300 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2022-10-14 22:11:50 +0300 |
commit | 7b7240d50dd5e418bc17beff48aa5681b398b980 (patch) | |
tree | b521f1da139ce85974b71f1698cc140b1e7fed6c /src/lib.c | |
parent | 433ce0f6795a4db89921b26274dd0b18fcccbb21 (diff) | |
download | foodtools-7b7240d50dd5e418bc17beff48aa5681b398b980.tar.gz foodtools-7b7240d50dd5e418bc17beff48aa5681b398b980.tar.bz2 foodtools-7b7240d50dd5e418bc17beff48aa5681b398b980.zip |
More changes
Diffstat (limited to 'src/lib.c')
-rw-r--r-- | src/lib.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 } |