aboutsummaryrefslogtreecommitdiffstats
path: root/src/c_utils.go
diff options
context:
space:
mode:
authorjoe <rbo@gmx.us>2025-08-29 11:22:41 +0200
committerjoe <rbo@gmx.us>2025-08-29 11:22:41 +0200
commitbf05941247867b6dd1f0532a1159e3b685f561f8 (patch)
treed1e7f3ab861685d2ee30e47f5e28e72fc079041f /src/c_utils.go
parentokok (diff)
downloadhardflip-bf05941247867b6dd1f0532a1159e3b685f561f8.tar.gz
hardflip-bf05941247867b6dd1f0532a1159e3b685f561f8.tar.bz2
hardflip-bf05941247867b6dd1f0532a1159e3b685f561f8.tar.xz
hardflip-bf05941247867b6dd1f0532a1159e3b685f561f8.tar.zst
hardflip-bf05941247867b6dd1f0532a1159e3b685f561f8.zip
fuck good
Diffstat (limited to 'src/c_utils.go')
-rw-r--r--src/c_utils.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/c_utils.go b/src/c_utils.go
index 76ac248..2333ffd 100644
--- a/src/c_utils.go
+++ b/src/c_utils.go
@@ -149,6 +149,9 @@ func c_die(str string, err error) {
}
func c_error_mode(msg string, err error, ui *HardUI) {
+ if ui == nil {
+ return
+ }
ui.mode = ERROR_MODE
err_str := ""
if err != nil {