diff options
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 } |