summaryrefslogtreecommitdiffstats
path: root/src/lib.c
diff options
context:
space:
mode:
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
}