From f028f36e65af8c715317a37ac21e1a1e1b0e9b2a Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Fri, 7 Dec 2018 08:34:42 +0000 Subject: [PATCH] use default path if not set --- zpm-findpkg.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zpm-findpkg.c b/zpm-findpkg.c index 2ce88f6..4ee3f12 100644 --- a/zpm-findpkg.c +++ b/zpm-findpkg.c @@ -22,6 +22,9 @@ int main(int ac, char **av){ sqlite3_str *query; dbfile = getenv("ZPMDB"); + if (!dbfile) { + dbfile = "/var/lib/zpm/local.db"; + } include = sqlite3_str_new(NULL); exclude = sqlite3_str_new(NULL); -- 2.40.0