]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gnu: fix to just-introduced binding for relocate
authorReuben Thomas <rrt@sc3d.org>
Sat, 20 Apr 2024 17:35:29 +0000 (19:35 +0200)
committerReuben Thomas <rrt@sc3d.org>
Sat, 20 Apr 2024 17:35:29 +0000 (19:35 +0200)
vapi/gnu.vapi

index 9df11f7c9d9c08d1fdbe4a01d1484ef3da41ffc7..fea6371ae34673f370535d37ee708151e85cf343 100644 (file)
@@ -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;