summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2021-03-18 17:58:21 +0100
committerRémi Verschelde <rverschelde@gmail.com>2021-03-18 17:58:21 +0100
commit2274d4eebc5b0af3c59a9b0ea7877d9fd729dfc4 (patch)
treec6f229e6a7ef92504e98ff3f1256da52a607cee0 /modules
parent4ca1e73ff9ae4855db082a43b05542ac9e4d6ff5 (diff)
Mono: Fix Android build after #46900
Diffstat (limited to 'modules')
-rw-r--r--modules/mono/mono_gd/support/android_support.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/mono_gd/support/android_support.cpp b/modules/mono/mono_gd/support/android_support.cpp
index 5dd33b036a..c65353dfd1 100644
--- a/modules/mono/mono_gd/support/android_support.cpp
+++ b/modules/mono/mono_gd/support/android_support.cpp
@@ -636,7 +636,7 @@ GD_PINVOKE_EXPORT int32_t _monodroid_get_dns_servers(void **r_dns_servers_array)
if (dns_servers_count > 0) {
size_t ret_size = sizeof(char *) * (size_t)dns_servers_count;
*r_dns_servers_array = malloc(ret_size); // freed by the BCL
- ERR_FAIL_NULL_MSG(*r_dns_servers_array, "Out of memory.");
+ ERR_FAIL_NULL_V_MSG(*r_dns_servers_array, -1, "Out of memory.");
memcpy(*r_dns_servers_array, dns_servers, ret_size);
}