From a365c0577c310b702e5a4f3c34295b1ac5b4c844 Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Sat, 20 Apr 2024 19:35:29 +0200 Subject: [PATCH] gnu: fix to just-introduced binding for relocate --- vapi/gnu.vapi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vapi/gnu.vapi b/vapi/gnu.vapi index 9df11f7c9..fea6371ae 100644 --- a/vapi/gnu.vapi +++ b/vapi/gnu.vapi @@ -76,7 +76,7 @@ namespace Gnu { [CCode (cname = "_vala_gnulib_relocate")] public string relocate (string path) { char* newpath = _gnulib_relocate (path); - if (newpath == path) { + if (newpath != path) { // If relocate malloced, then return the value, defeating Vala's // attempt to strdup it. return (string) (owned) newpath; -- GitLab