summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/lib/general
diff options
context:
space:
mode:
Diffstat (limited to 'gnuradio-core/src/lib/general')
-rw-r--r--gnuradio-core/src/lib/general/gr_prefs.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/gnuradio-core/src/lib/general/gr_prefs.cc b/gnuradio-core/src/lib/general/gr_prefs.cc
index c192e25be..37ca7c6f3 100644
--- a/gnuradio-core/src/lib/general/gr_prefs.cc
+++ b/gnuradio-core/src/lib/general/gr_prefs.cc
@@ -65,11 +65,12 @@ gr_prefs::~gr_prefs()
std::vector<std::string>
gr_prefs::_sys_prefs_filenames()
{
+ std::vector<std::string> fnames;
+
fs::path dir = gr_prefsdir();
if(!fs::is_directory(dir))
- std::runtime_error("gr_prefs: preference path does not exist.\n");
+ return fnames;
- std::vector<std::string> fnames;
fs::directory_iterator diritr(dir);
while(diritr != fs::directory_iterator()) {
fs::path p = *diritr++;