1
0
mirror of https://github.com/haiwen/libsearpc.git synced 2025-09-16 23:08:14 +00:00

Fix a bug for glib-2.32.1

doamin passed to g_set_error must not be 0
This commit is contained in:
poet
2012-05-04 15:04:43 +08:00
parent ec20095480
commit e090d850e0
7 changed files with 26 additions and 11 deletions

View File

@@ -252,7 +252,7 @@ searpc_server_call_function (const char *svc_name,
service = g_hash_table_lookup (service_table, svc_name);
if (!service) {
g_warning ("[SeaRPC] cannot find service %s.\n", svc_name);
g_set_error (error, 0, 501, "cannot find service %s.", svc_name);
g_set_error (error, DFT_DOMAIN, 501, "cannot find service %s.", svc_name);
return NULL;
}
@@ -271,7 +271,7 @@ searpc_server_call_function (const char *svc_name,
FuncItem *fitem = g_hash_table_lookup(service->func_table, fname);
if (!fitem) {
g_warning ("[SeaRPC] cannot find function %s.\n", fname);
g_set_error (error, 0, 500, "cannot find function %s.", fname);
g_set_error (error, DFT_DOMAIN, 500, "cannot find function %s.", fname);
return NULL;
}