Skip to content

Commit

Permalink
fix(windows loading): expliciting temp file suffix (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
DariusIMP authored Feb 8, 2024
1 parent f6142a0 commit a91df33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zenoh-kotlin/src/jvmMain/kotlin/io/zenoh/Zenoh.kt
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ internal actual class Zenoh private actual constructor() {

@Suppress("UnsafeDynamicallyLoadedCode")
private fun loadZenohJNI(inputStream: InputStream) {
val tempLib = File.createTempFile("tempLib", "")
val tempLib = File.createTempFile("tempLib", ".tmp")
tempLib.deleteOnExit()

FileOutputStream(tempLib).use { output ->
Expand Down

0 comments on commit a91df33

Please sign in to comment.