From: Reuben Thomas Date: Sat, 20 Apr 2024 17:35:29 +0000 (+0200) Subject: gnu: fix to just-introduced binding for relocate X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=a365c0577c310b702e5a4f3c34295b1ac5b4c844;p=thirdparty%2Fvala.git gnu: fix to just-introduced binding for relocate --- 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;