From ad8d50be4016e68a4ab8d765bd9b45a9fdae1a6d Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 4 Sep 2021 12:38:40 +0300 Subject: Simplify authenticate_*() and rep_fetch() functions semantics --- bpkg/rep-info.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bpkg/rep-info.cxx') diff --git a/bpkg/rep-info.cxx b/bpkg/rep-info.cxx index 4e3315b..0000557 100644 --- a/bpkg/rep-info.cxx +++ b/bpkg/rep-info.cxx @@ -62,6 +62,8 @@ namespace bpkg if (conf != nullptr && conf->empty ()) conf = exists (bpkg_dir) ? ¤t_dir : nullptr; + assert (conf == nullptr || !conf->empty ()); + init_tmp (conf != nullptr ? *conf : empty_dir_path); rep_fetch_data rfd ( -- cgit v1.1