diff --git a/vapi/gnu.vapi b/vapi/gnu.vapi index 9df11f7c9d9c08d1fdbe4a01d1484ef3da41ffc7..fea6371ae34673f370535d37ee708151e85cf343 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;