Selaa lähdekoodia

Fix C strings caching

DarthSim 6 vuotta sitten
vanhempi
commit
c6838e5857
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      process.go

+ 1 - 1
process.go

@@ -36,7 +36,7 @@ type cConfig struct {
 
 var cConf cConfig
 
-var cstrings map[string]*C.char
+var cstrings = make(map[string]*C.char)
 
 func initVips() {
 	runtime.LockOSThread()