aboutsummaryrefslogtreecommitdiffstats
path: root/src/i_events.go
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-01-29 20:20:20 +0100
committerJoe <rbo@gmx.us>2024-01-29 20:20:20 +0100
commit6bfd76773258c8c05c345b0765bf487e2cc08fa7 (patch)
tree59222108cccd62613a4c91e1989d48fe2978296a /src/i_events.go
parentsegv (diff)
downloadhardflip-6bfd76773258c8c05c345b0765bf487e2cc08fa7.tar.gz
hardflip-6bfd76773258c8c05c345b0765bf487e2cc08fa7.tar.bz2
hardflip-6bfd76773258c8c05c345b0765bf487e2cc08fa7.tar.xz
hardflip-6bfd76773258c8c05c345b0765bf487e2cc08fa7.tar.zst
hardflip-6bfd76773258c8c05c345b0765bf487e2cc08fa7.zip
no segv
Diffstat (limited to '')
-rw-r--r--src/i_events.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/i_events.go b/src/i_events.go
index 11703da..e70b480 100644
--- a/src/i_events.go
+++ b/src/i_events.go
@@ -167,6 +167,9 @@ func i_fold_dir(data *HardData, item *ItemsNode) {
func i_reload_data(data *HardData) {
data.data_dir = c_get_data_dir(&data.ui)
+ if data.data_dir == "" {
+ return
+ }
g_load_count = -1
data.ldirs, data.litems, data.load_err = i_load_ui(data.data_dir, data.opts,
&data.ui)