Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:recycle: https://github.com/siyuan-note/siyuan/pull/17302

Danielad66b5c6dd44
diff --git a/kernel/harmony/kernel.go b/kernel/harmony/kernel.go
index e2eff5ebf5..390e16399f 100644
--- a/kernel/harmony/kernel.go
+++ b/kernel/harmony/kernel.go
@@ -129,7 +129,7 @@ func DisableFeature(feature *C.char) {
//export Unzip
func Unzip(zipFilePath, destination *C.char) {
- zipPath, destPath := C.GoString(zipFilePath), C.GoString(destination)
+ var zipPath, destPath string = C.GoString(zipFilePath), C.GoString(destination)
if err := gulu.Zip.Unzip(zipPath, destPath); nil != err {
logging.LogErrorf("unzip [%s] failed: %s", zipPath, err)
panic(err)